mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-03-28 14:56:24 +01:00
fix claude tokens
This commit is contained in:
parent
6e73f30f7f
commit
0de98c99fa
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
"params": {
|
||||
"thinking": {
|
||||
"type": "enabled",
|
||||
"budget_tokens": 16000
|
||||
"budget_tokens": 4000
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -26,7 +26,7 @@ export class Claude {
|
|||
this.params.max_tokens = this.params.thinking.budget_tokens + 1000;
|
||||
// max_tokens must be greater than thinking.budget_tokens
|
||||
} else {
|
||||
this.params.max_tokens = 16000;
|
||||
this.params.max_tokens = 4096;
|
||||
}
|
||||
}
|
||||
const resp = await this.anthropic.messages.create({
|
||||
|
|
Loading…
Add table
Reference in a new issue