mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 13:46:37 +08:00
sonnet 3.7 update fix
change temp to 1 if sonnet 3.7. otherwise use userSelection and removed top_k
This commit is contained in:
parent
a5a8b1cd0f
commit
568aa0b5e0
@ -189,10 +189,10 @@ export class ClaudeApi implements LLMApi {
|
||||
|
||||
model: modelConfig.model,
|
||||
max_tokens: modelConfig.max_tokens,
|
||||
temperature: modelConfig.temperature,
|
||||
temperature: modelConfig.model === "claude-3-7-sonnet-20250219" ? 1 : modelConfig.temperature,
|
||||
top_p: modelConfig.top_p,
|
||||
// top_k: modelConfig.top_k,
|
||||
top_k: 5,
|
||||
// top_k: 5,
|
||||
thinking: {
|
||||
type: "enabled",
|
||||
budget_tokens: modelConfig.max_tokens - 1, // Default value from example
|
||||
|
Loading…
Reference in New Issue
Block a user