adjust supported models for openai tool use
This commit is contained in:
parent
19608db963
commit
9fbdb09087
1 changed files with 2 additions and 5 deletions
|
|
@ -12,11 +12,8 @@ export const PROVIDER_TOOL_SUPPORT: Record<
|
|||
}
|
||||
},
|
||||
openai: (model) => {
|
||||
if (
|
||||
["gpt-4", "o1", "chatgpt-4o-latest"].some((part) =>
|
||||
model.toLowerCase().startsWith(part),
|
||||
)
|
||||
) {
|
||||
// https://platform.openai.com/docs/guides/function-calling#models-supporting-function-calling
|
||||
if (model.toLowerCase().startsWith("gpt-4")) {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue