fix claude tokens

This commit is contained in:
MaxRobinsonTheGreat 2025-03-10 12:27:31 -05:00
parent 6e73f30f7f
commit 0de98c99fa
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
"params": {
"thinking": {
"type": "enabled",
"budget_tokens": 16000
"budget_tokens": 4000
}
}
},

View file

@ -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({