From 52a54d22481a90ad64bada6cacd8069b61ff5e38 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Mon, 4 Nov 2024 22:28:34 -0500 Subject: [PATCH] sync: update claude model --- src/backend/src/modules/puterai/ClaudeService.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/src/modules/puterai/ClaudeService.js b/src/backend/src/modules/puterai/ClaudeService.js index 3d8a82af..c0d30239 100644 --- a/src/backend/src/modules/puterai/ClaudeService.js +++ b/src/backend/src/modules/puterai/ClaudeService.js @@ -28,6 +28,7 @@ class ClaudeService extends BaseService { ['puter-chat-completion']: { async list () { return [ + 'claude-3-5-sonnet-20241022', 'claude-3-5-sonnet-20240620', 'claude-3-haiku-20240307', ]; @@ -74,7 +75,7 @@ class ClaudeService extends BaseService { }, stream); (async () => { const completion = await this.anthropic.messages.stream({ - model: model ?? 'claude-3-5-sonnet-20240620', + model: model ?? 'claude-3-5-sonnet-20241022', max_tokens: 1000, temperature: 0, system: PUTER_PROMPT + JSON.stringify(system_prompts), @@ -97,7 +98,7 @@ class ClaudeService extends BaseService { } const msg = await this.anthropic.messages.create({ - model: 'claude-3-5-sonnet-20240620', + model: 'claude-3-5-sonnet-20241022', max_tokens: 1000, temperature: 0, system: PUTER_PROMPT + JSON.stringify(system_prompts),