mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 13:46:37 +08:00
fix include_reasoning from propagating in non openrouter endpoints
This commit is contained in:
parent
fd9f074e30
commit
0534b21acd
1
.gitignore
vendored
1
.gitignore
vendored
@ -49,3 +49,4 @@ masks.json
|
||||
|
||||
# mcp config
|
||||
app/mcp/mcp_config.json
|
||||
.aider*
|
||||
|
@ -234,7 +234,7 @@ export class ChatGPTApi implements LLMApi {
|
||||
presence_penalty: !isO1OrO3 ? modelConfig.presence_penalty : 0,
|
||||
frequency_penalty: !isO1OrO3 ? modelConfig.frequency_penalty : 0,
|
||||
top_p: !isO1OrO3 ? modelConfig.top_p : 1,
|
||||
include_reasoning: true,
|
||||
...(modelConfig.providerName !== ServiceProvider.Azure && {include_reasoning: true}),
|
||||
// max_tokens: Math.max(modelConfig.max_tokens, 1024),
|
||||
// Please do not ask me why not send max_tokens, no reason, this param is just shit, I dont want to explain anymore.
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user