This repository was archived by the owner on May 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat: add GPT-OSS 120b and 20b models to Groq provider #6732
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,8 @@ export type GroqModelId = | |
| | "qwen/qwen3-32b" | ||
| | "deepseek-r1-distill-llama-70b" | ||
| | "moonshotai/kimi-k2-instruct" | ||
| | "openai/gpt-oss-120b" | ||
| | "openai/gpt-oss-20b" | ||
|
|
||
| export const groqDefaultModelId: GroqModelId = "llama-3.3-70b-versatile" // Defaulting to Llama3 70B Versatile | ||
|
|
||
|
|
@@ -97,4 +99,24 @@ export const groqModels = { | |
| outputPrice: 3.0, | ||
| description: "Moonshot AI Kimi K2 Instruct 1T model, 128K context.", | ||
| }, | ||
| "openai/gpt-oss-120b": { | ||
| maxTokens: 32766, | ||
| contextWindow: 131072, | ||
| supportsImages: false, | ||
| supportsPromptCache: false, | ||
| inputPrice: 0.15, | ||
| outputPrice: 0.75, | ||
| description: | ||
| "GPT-OSS 120B is OpenAI's flagship open source model, built on a Mixture-of-Experts (MoE) architecture with 20 billion parameters and 128 experts.", | ||
| }, | ||
| "openai/gpt-oss-20b": { | ||
| maxTokens: 32768, | ||
| contextWindow: 131072, | ||
| supportsImages: false, | ||
| supportsPromptCache: false, | ||
| inputPrice: 0.1, | ||
| outputPrice: 0.5, | ||
| description: | ||
| "GPT-OSS 20B is OpenAI's flagship open source model, built on a Mixture-of-Experts (MoE) architecture with 20 billion parameters and 32 experts.", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this description correct? The model name suggests 20B parameters total, but the description says "20 billion parameters and 32 experts". Should this be "GPT-OSS 20B is OpenAI's flagship open source model, built on a Mixture-of-Experts (MoE) architecture with 32 experts"?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, shut up |
||
| }, | ||
| } as const satisfies Record<string, ModelInfo> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description mentions that these models support tool use, browser search, code execution, and JSON object mode. Should we add these as boolean flags in the model info? For example: