mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	仅修改o1的超时时间为4分钟,减少o1系列模型请求失败的情况
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
@@ -95,7 +95,7 @@ export const UNFINISHED_INPUT = (id: string) => "unfinished-input-" + id;
 | 
			
		||||
 | 
			
		||||
export const STORAGE_KEY = "chatgpt-next-web";
 | 
			
		||||
 | 
			
		||||
export const REQUEST_TIMEOUT_MS = 180000;
 | 
			
		||||
export const REQUEST_TIMEOUT_MS = 60000;
 | 
			
		||||
 | 
			
		||||
export const EXPORT_MESSAGE_CLASS_NAME = "export-markdown";
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user