Skip to content

Commit

Permalink
isDalle3 || isO1 ? REQUEST_TIMEOUT_MS * 6
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkSchlossmacher committed Nov 21, 2024
1 parent 27a2178 commit a285003
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 @@ -380,7 +380,7 @@ export class ChatGPTApi implements LLMApi {
// make a fetch request
const requestTimeoutId = setTimeout(
() => controller.abort(),
isDalle3 || isO1 ? REQUEST_TIMEOUT_MS * 4 : REQUEST_TIMEOUT_MS, // dalle3 using b64_json is slow.
isDalle3 || isO1 ? REQUEST_TIMEOUT_MS * 6 : REQUEST_TIMEOUT_MS, // dalle3 using b64_json is slow.
);

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

0 comments on commit a285003

Please sign in to comment.