Merge pull request #7006 from gaby/2025-08-06-03-24-22

fix: add OpenAI gpt-oss models in Agent mode
This commit is contained in:
Dallin Romney 2025-08-06 16:32:37 -07:00 • committed by GitHub
commit 5cb1a1f6ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 0 deletions

View file

@ -61,6 +61,9 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
) {
return true;
}
if (model.toLowerCase().includes("gpt-oss")) {
return true;
}
// https://ai.google.dev/gemma/docs/capabilities/function-calling
if (model.toLowerCase().startsWith("gemma")) {
return true;
@ -174,6 +177,7 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
"firefunction-v2",
"mistral",
"devstral",
"gpt-oss",
].some((part) => modelName.toLowerCase().includes(part))
) {
return true;
@ -237,6 +241,7 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
"openai/o1",
"openai/o3",
"openai/o4",
"openai/gpt-oss",
"anthropic/claude-3",
"anthropic/claude-4",
"microsoft/phi-3",

View file

@ -87,6 +87,34 @@ export const models: { [key: string]: ModelPackage } = {
providerOptions: ["novita", "nebius"],
isOpenSource: true,
},
gptOss20B: {
title: "gpt-oss-20b",
description:
"OpenAI's 20B open-weight model with native tool use and reasoning for agentic tasks.",
refUrl: "https://huggingface.co/openai/gpt-oss-20b",
params: {
title: "gpt-oss-20b",
model: "openai/gpt-oss-20b",
contextLength: 128_000,
},
icon: "openai.png",
providerOptions: ["vllm"],
isOpenSource: true,
},
gptOss120B: {
title: "gpt-oss-120b",
description:
"OpenAI's 120B flagship open-weight model built for complex, high‑reasoning agentic workflows.",
refUrl: "https://huggingface.co/openai/gpt-oss-120b",
params: {
title: "gpt-oss-120b",
model: "openai/gpt-oss-120b",
contextLength: 128_000,
},
icon: "openai.png",
providerOptions: ["vllm"],
isOpenSource: true,
},
llama318BChat: {
title: "Llama 3.1 8B",
description: "A model from Meta, fine-tuned for chat",