Skip to content

Commit 9fb3c93

Browse files
committed
feat: add tool support for Novita provider models
Register major tool-capable models available through Novita provider to enable function calling in Agent mode.
1 parent 8599411 commit 9fb3c93

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

core/llm/toolSupport.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,39 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
325325
return true;
326326
}
327327

328+
return false;
329+
},
330+
novita: (model) => {
331+
const lower = model.toLowerCase();
332+
333+
// Exact match models
334+
const exactMatches = [
335+
"deepseek/deepseek-r1-0528",
336+
"deepseek/deepseek-r1-turbo",
337+
"deepseek/deepseek-v3-0324",
338+
"deepseek/deepseek-v3-turbo",
339+
"meta-llama/llama-3.3-70b-instruct",
340+
"qwen/qwen-2.5-72b-instruct",
341+
"zai-org/glm-4.5",
342+
"moonshotai/kimi-k2-instruct",
343+
];
344+
345+
if (exactMatches.includes(lower)) {
346+
return true;
347+
}
348+
349+
// Prefix match models
350+
const prefixMatches = [
351+
"qwen/qwen3",
352+
"openai/gpt-oss",
353+
];
354+
355+
for (const prefix of prefixMatches) {
356+
if (lower.startsWith(prefix)) {
357+
return true;
358+
}
359+
}
360+
328361
return false;
329362
},
330363
};

0 commit comments

Comments
 (0)