feat: support o3/o4 as agents

This commit is contained in:
Muli Yulzary 2025-04-14 19:02:39 +03:00 • committed by GitHub
parent 87ad955b3b
commit 8bb18fd2ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,14 @@ export const PROVIDER_TOOL_SUPPORT: Record<
return true;
}
},
azure: (model) => {
if (
model.toLowerCase().startsWith("gpt-4") ||
model.toLowerCase().startsWith("o3")
) {
return true;
return false;
}
openai: (model) => {
// https://platform.openai.com/docs/guides/function-calling#models-supporting-function-calling
if (