fix default claude models

This commit is contained in:
MaxRobinsonTheGreat 2025-08-23 16:13:04 -05:00
parent 1588a8770b
commit 5f3a7f98c4
3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{
"name": "claude",
"model": "claude-4-sonnet-latest",
"model": "claude-sonnet-4-20250514",
"embedding": "openai"
}

View file

@ -2,7 +2,7 @@
"name": "claude_thinker",
"model": {
"model": "claude-4-sonnet-latest",
"model": "claude-sonnet-4-20250514",
"params": {
"thinking": {
"type": "enabled",

View file

@ -21,7 +21,7 @@ export class Claude {
const messages = strictFormat(turns);
let res = null;
try {
console.log('Awaiting anthropic api response...')
console.log(`Awaiting anthropic response from ${this.model_name}...`)
if (!this.params.max_tokens) {
if (this.params.thinking?.budget_tokens) {
this.params.max_tokens = this.params.thinking.budget_tokens + 1000;
@ -31,7 +31,7 @@ export class Claude {
}
}
const resp = await this.anthropic.messages.create({
model: this.model_name || "claude-3-sonnet-20240229",
model: this.model_name || "claude-sonnet-4-20250514",
system: systemMessage,
messages: messages,
...(this.params || {})