perf: timeout
This commit is contained in:
parent
44e772f0fd
commit
a5fe671ffe
@ -119,12 +119,10 @@ export const dispatchChatCompletion = async (props: Record<string, any>): Promis
|
|||||||
: []),
|
: []),
|
||||||
...messages
|
...messages
|
||||||
],
|
],
|
||||||
// frequency_penalty: 0.5, // 越大,重复内容越少
|
|
||||||
// presence_penalty: -0.5, // 越大,越容易出现新内容
|
|
||||||
stream
|
stream
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
timeout: stream ? 120000 : 480000,
|
timeout: 480000,
|
||||||
responseType: stream ? 'stream' : 'json',
|
responseType: stream ? 'stream' : 'json',
|
||||||
...axiosConfig(userOpenaiAccount)
|
...axiosConfig(userOpenaiAccount)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user