Skip to content

Commit 77439af

Browse files
feat: add gpt oss 120b model (#29)
* feat(provider): add gpt-oss-120b model support - add gpt-oss-120b and openai/gpt-oss-120b model mappings to endpoint URL - update model capabilities table in README with new model - update tool calling example to use openai/gpt-oss-120b * chore: add changeset for gpt-oss-120b model support
1 parent 573a359 commit 77439af

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@runpod/ai-sdk-provider": minor
3+
---
4+
5+
Add support for `openai/gpt-oss-120b` model. Users can now use this 120B parameter open-source GPT model for text generation and tool calling. The model supports streaming and tool usage.
6+

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ for await (const delta of textStream) {
106106

107107
### Model Capabilities
108108

109-
| Model ID | Description | Streaming | Object Generation | Tool Usage | Reasoning Notes |
110-
| -------------------- | ------------------------------------------------------------------- | --------- | ----------------- | ---------- | ------------------------- |
111-
| `qwen/qwen3-32b-awq` | 32B parameter multilingual model with strong reasoning capabilities |||| Standard reasoning events |
109+
| Model ID | Description | Streaming | Object Generation | Tool Usage | Reasoning Notes |
110+
| --------------------- | ------------------------------------------------------------------- | --------- | ----------------- | ---------- | ------------------------- |
111+
| `qwen/qwen3-32b-awq` | 32B parameter multilingual model with strong reasoning capabilities |||| Standard reasoning events |
112+
| `openai/gpt-oss-120b` | 120B parameter open-source GPT model |||| Standard reasoning events |
112113

113114
### Chat Conversations
114115

@@ -129,7 +130,7 @@ import { generateText, tool } from 'ai';
129130
import { z } from 'zod';
130131

131132
const { text, toolCalls } = await generateText({
132-
model: runpod('qwen/qwen3-32b-awq'),
133+
model: runpod('openai/gpt-oss-120b'),
133134
prompt: 'What is the weather like in San Francisco?',
134135
tools: {
135136
getWeather: tool({

src/runpod-provider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Creates an image model for image generation.
6262
const MODEL_ID_TO_ENDPOINT_URL: Record<string, string> = {
6363
'qwen/qwen3-32b-awq': 'https://api.runpod.ai/v2/qwen3-32b-awq/openai/v1',
6464
'ibm-granite/granite-4.0-h-small': 'https://api.runpod.ai/v2/granite-4-0-h-small/openai/v1',
65+
'gpt-oss-120b': 'https://api.runpod.ai/v2/gpt-oss-120b/openai/v1',
66+
'openai/gpt-oss-120b': 'https://api.runpod.ai/v2/gpt-oss-120b/openai/v1',
6567
};
6668

6769
// Mapping of Runpod image model IDs to their endpoint URLs

0 commit comments

Comments
 (0)