Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cofounder/api/utils/anthropic.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ async function _convertFromOpenaiFormat({ messages }) {
}

async function inference({
model = "claude-3-5-sonnet-20240620",
model = "claude-3-5-sonnet-20241022",
messages,
stream = process.stdout,
}) {
// messages are in openai format , need conversion
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,
Expand Down