Skip to content

Commit 5cb1a1f

Browse files
authored
Merge pull request #7006 from gaby/2025-08-06-03-24-22
fix: add OpenAI gpt-oss models in Agent mode
2 parents d599bb1 + b734afe commit 5cb1a1f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

core/llm/toolSupport.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
6161
) {
6262
return true;
6363
}
64+
if (model.toLowerCase().includes("gpt-oss")) {
65+
return true;
66+
}
6467
// https://ai.google.dev/gemma/docs/capabilities/function-calling
6568
if (model.toLowerCase().startsWith("gemma")) {
6669
return true;
@@ -174,6 +177,7 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
174177
"firefunction-v2",
175178
"mistral",
176179
"devstral",
180+
"gpt-oss",
177181
].some((part) => modelName.toLowerCase().includes(part))
178182
) {
179183
return true;
@@ -237,6 +241,7 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
237241
"openai/o1",
238242
"openai/o3",
239243
"openai/o4",
244+
"openai/gpt-oss",
240245
"anthropic/claude-3",
241246
"anthropic/claude-4",
242247
"microsoft/phi-3",

gui/src/pages/AddNewModel/configs/models.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,34 @@ export const models: { [key: string]: ModelPackage } = {
8787
providerOptions: ["novita", "nebius"],
8888
isOpenSource: true,
8989
},
90+
gptOss20B: {
91+
title: "gpt-oss-20b",
92+
description:
93+
"OpenAI's 20B open-weight model with native tool use and reasoning for agentic tasks.",
94+
refUrl: "https://huggingface.co/openai/gpt-oss-20b",
95+
params: {
96+
title: "gpt-oss-20b",
97+
model: "openai/gpt-oss-20b",
98+
contextLength: 128_000,
99+
},
100+
icon: "openai.png",
101+
providerOptions: ["vllm"],
102+
isOpenSource: true,
103+
},
104+
gptOss120B: {
105+
title: "gpt-oss-120b",
106+
description:
107+
"OpenAI's 120B flagship open-weight model built for complex, high‑reasoning agentic workflows.",
108+
refUrl: "https://huggingface.co/openai/gpt-oss-120b",
109+
params: {
110+
title: "gpt-oss-120b",
111+
model: "openai/gpt-oss-120b",
112+
contextLength: 128_000,
113+
},
114+
icon: "openai.png",
115+
providerOptions: ["vllm"],
116+
isOpenSource: true,
117+
},
90118
llama318BChat: {
91119
title: "Llama 3.1 8B",
92120
description: "A model from Meta, fine-tuned for chat",

0 commit comments

Comments
 (0)