Skip to content
Snippets Groups Projects
Commit 1ea23639 authored by timothycarambat's avatar timothycarambat
Browse files

patch supported openai agent models

parent 91ea37d1
No related branches found
No related tags found
No related merge requests found
......@@ -5,15 +5,11 @@ import useGetProviderModels, {
// These models do NOT support function calling
function supportedModel(provider, model = "") {
if (provider !== "openai") return true;
if (model.startsWith("gpt-3.5-turbo")) return true;
switch (model) {
case "gpt-4":
case "gpt-4-turbo-preview":
case "gpt-4-32k":
return true;
default:
return false;
}
return (
["gpt-3.5-turbo-0301", "gpt-4-turbo-2024-04-09", "gpt-4-turbo"].includes(
model
) === false
);
}
export default function AgentModelSelection({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment