mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-25 08:33:44 +02:00
fix default claude models
This commit is contained in:
parent
1588a8770b
commit
5f3a7f98c4
3 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "claude",
|
||||
|
||||
"model": "claude-4-sonnet-latest",
|
||||
"model": "claude-sonnet-4-20250514",
|
||||
|
||||
"embedding": "openai"
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
"name": "claude_thinker",
|
||||
|
||||
"model": {
|
||||
"model": "claude-4-sonnet-latest",
|
||||
"model": "claude-sonnet-4-20250514",
|
||||
"params": {
|
||||
"thinking": {
|
||||
"type": "enabled",
|
||||
|
|
|
@ -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 || {})
|
||||
|
|
Loading…
Add table
Reference in a new issue