Skip to content

Commit

Permalink
Merge pull request #5658 from ccq18/main
Browse files Browse the repository at this point in the history
fix  o1系列模型超时时间改为4分钟,
  • Loading branch information
lloydzhou authored Oct 14, 2024
2 parents e34c266 + 592f620 commit c25903b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/platforms/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export class ChatGPTApi implements LLMApi {
// make a fetch request
const requestTimeoutId = setTimeout(
() => controller.abort(),
isDalle3 || isO1 ? REQUEST_TIMEOUT_MS * 2 : REQUEST_TIMEOUT_MS, // dalle3 using b64_json is slow.
isDalle3 || isO1 ? REQUEST_TIMEOUT_MS * 4 : REQUEST_TIMEOUT_MS, // dalle3 using b64_json is slow.
);

const res = await fetch(chatPath, chatPayload);
Expand Down

0 comments on commit c25903b

Please sign in to comment.