Skip to content

Commit 364e53c

Browse files
authored
Use exacto for openrouter toolcalling (#1745)
1 parent 9697241 commit 364e53c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/api/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ app.post("/chat/completions", requireSupabaseAuth, async (c) => {
5353
Array.isArray(requestBody.tools) &&
5454
!(typeof toolChoice === "string" && toolChoice === "none");
5555

56+
// https://openrouter.ai/docs/features/exacto-variant
5657
const modelsToUse = needsToolCalling
5758
? [
58-
"moonshotai/kimi-k2-0905",
59+
"moonshotai/kimi-k2-0905:exacto",
5960
"anthropic/claude-haiku-4.5",
60-
"openai/gpt-oss-120b",
61+
"openai/gpt-oss-120b:exacto",
6162
]
6263
: ["openai/chatgpt-4o-latest", "moonshotai/kimi-k2-0905"];
6364

0 commit comments

Comments
 (0)