From 6e5d4a3f9e1bd2d1b703bc910cf347cfa54133c6 Mon Sep 17 00:00:00 2001 From: pashpashpash Date: Tue, 5 Aug 2025 11:08:53 -0700 Subject: [PATCH] openai model in hugging face correct maxtokens (#5371) * openai model in hugging face correct maxtokens * maxtokens * maxtokens 131k i guess? * maxtokens swap * changeset * Adding Gpt-oss through groq --------- Co-authored-by: arafatkatze --- .changeset/strong-zoos-arrive.md | 6 +++++ src/shared/api.ts | 42 +++++++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .changeset/strong-zoos-arrive.md diff --git a/.changeset/strong-zoos-arrive.md b/.changeset/strong-zoos-arrive.md new file mode 100644 index 00000000..14d8a756 --- /dev/null +++ b/.changeset/strong-zoos-arrive.md @@ -0,0 +1,6 @@ +--- +"claude-dev": patch +--- + +hugging face listing new oss openai models +groq listing new oss openai models diff --git a/src/shared/api.ts b/src/shared/api.ts index a31b3d16..ccf9988f 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -1133,6 +1133,26 @@ export const deepSeekModels = { export type HuggingFaceModelId = keyof typeof huggingFaceModels export const huggingFaceDefaultModelId: HuggingFaceModelId = "moonshotai/Kimi-K2-Instruct" export const huggingFaceModels = { + "openai/gpt-oss-120b": { + maxTokens: 32766, + contextWindow: 131_072, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0, + outputPrice: 0, + description: + "Large open-weight reasoning model for high-end desktops and data centers, built for complex coding, math, and general AI tasks.", + }, + "openai/gpt-oss-20b": { + maxTokens: 32766, + contextWindow: 131_072, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0, + outputPrice: 0, + description: + "Medium open-weight reasoning model that runs on most desktops, balancing strong reasoning with broad accessibility.", + }, "moonshotai/Kimi-K2-Instruct": { maxTokens: 131_072, contextWindow: 131_072, @@ -2560,8 +2580,28 @@ export const cerebrasModels = { // https://console.groq.com/docs/models // https://groq.com/pricing/ export type GroqModelId = keyof typeof groqModels -export const groqDefaultModelId: GroqModelId = "moonshotai/kimi-k2-instruct" +export const groqDefaultModelId: GroqModelId = "openai/gpt-oss-120b" export const groqModels = { + "openai/gpt-oss-120b": { + maxTokens: 32766, // Model fails if you try to use more than 32K tokens + contextWindow: 131_072, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.15, + outputPrice: 0.75, + description: + "A state-of-the-art 120B open-weight Mixture-of-Experts language model optimized for strong reasoning, tool use, and efficient deployment on large GPUs", + }, + "openai/gpt-oss-20b": { + maxTokens: 32766, // Model fails if you try to use more than 32K tokens + contextWindow: 131_072, + supportsImages: false, + supportsPromptCache: false, + inputPrice: 0.1, + outputPrice: 0.5, + description: + "A compact 20B open-weight Mixture-of-Experts language model designed for strong reasoning and tool use, ideal for edge devices and local inference.", + }, // Compound Beta Models - Hybrid architectures optimized for tool use "compound-beta": { maxTokens: 8192,