Skip to content

Commit a5fe671

Browse files
committed
perf: timeout
1 parent 44e772f commit a5fe671

File tree

1 file changed

+1
-3
lines changed
  • client/src/service/moduleDispatch/chat

1 file changed

+1
-3
lines changed

client/src/service/moduleDispatch/chat/oneapi.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,10 @@ export const dispatchChatCompletion = async (props: Record<string, any>): Promis
119119
: []),
120120
...messages
121121
],
122-
// frequency_penalty: 0.5, // 越大,重复内容越少
123-
// presence_penalty: -0.5, // 越大,越容易出现新内容
124122
stream
125123
},
126124
{
127-
timeout: stream ? 120000 : 480000,
125+
timeout: 480000,
128126
responseType: stream ? 'stream' : 'json',
129127
...axiosConfig(userOpenaiAccount)
130128
}

0 commit comments

Comments
 (0)