Skip to content

Commit

Permalink
perf: timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu committed Sep 4, 2023
1 parent 44e772f commit a5fe671
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/src/service/moduleDispatch/chat/oneapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,10 @@ export const dispatchChatCompletion = async (props: Record<string, any>): Promis
: []),
...messages
],
// frequency_penalty: 0.5, // 越大,重复内容越少
// presence_penalty: -0.5, // 越大,越容易出现新内容
stream
},
{
timeout: stream ? 120000 : 480000,
timeout: 480000,
responseType: stream ? 'stream' : 'json',
...axiosConfig(userOpenaiAccount)
}
Expand Down

0 comments on commit a5fe671

Please sign in to comment.