From 01a2112268424a3776e7c0e99f62b1f4936a52a1 Mon Sep 17 00:00:00 2001 From: Jon Davis Date: Mon, 4 Nov 2024 21:32:58 -0700 Subject: [PATCH] Update anthropic.js to use newer sonnet-1022 --- cofounder/api/utils/anthropic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cofounder/api/utils/anthropic.js b/cofounder/api/utils/anthropic.js index 4f651a3..9eb3aa5 100644 --- a/cofounder/api/utils/anthropic.js +++ b/cofounder/api/utils/anthropic.js @@ -62,7 +62,7 @@ async function _convertFromOpenaiFormat({ messages }) { } async function inference({ - model = "claude-3-5-sonnet-20240620", + model = "claude-3-5-sonnet-20241022", messages, stream = process.stdout, }) { @@ -70,7 +70,7 @@ async function inference({ const converted = await _convertFromOpenaiFormat({ messages }); // console.dir({ "debug:utils:anthropic": {messages : converted.messages} } , {depth:null}) - const _model = model.includes("gpt") ? "claude-3-5-sonnet-20240620" : model; + const _model = model.includes("gpt") ? "claude-3-5-sonnet-20241022" : model; const streaming = await anthropic.messages.create({ model: _model, stream: true,