mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	Add support for GPT5
This commit is contained in:
		@@ -231,7 +231,7 @@ export class ChatGPTApi implements LLMApi {
 | 
			
		||||
        messages,
 | 
			
		||||
        stream: options.config.stream,
 | 
			
		||||
        model: modelConfig.model,
 | 
			
		||||
        temperature: !isO1OrO3 ? modelConfig.temperature : 1,
 | 
			
		||||
        temperature: (!isO1OrO3 && !isGpt5) ? modelConfig.temperature : 1,
 | 
			
		||||
        presence_penalty: !isO1OrO3 ? modelConfig.presence_penalty : 0,
 | 
			
		||||
        frequency_penalty: !isO1OrO3 ? modelConfig.frequency_penalty : 0,
 | 
			
		||||
        top_p: !isO1OrO3 ? modelConfig.top_p : 1,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user