-
Notifications
You must be signed in to change notification settings - Fork 191
feat(models): add Nebius & Zhipu; align pricing & entries #1289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
371bd70
2ecbe70
9a4021d
4178929
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -25,7 +25,6 @@ export const deepseekModels = [ | |||||||||
| }, | ||||||||||
| { | ||||||||||
| providerId: "nebius", | ||||||||||
| stability: "unstable" as const, | ||||||||||
| modelName: "deepseek-ai/DeepSeek-V3", | ||||||||||
| inputPrice: 0.5 / 1e6, | ||||||||||
| outputPrice: 1.5 / 1e6, | ||||||||||
|
|
@@ -36,7 +35,29 @@ export const deepseekModels = [ | |||||||||
| vision: false, | ||||||||||
| tools: false, | ||||||||||
| jsonOutput: false, | ||||||||||
| deactivatedAt: new Date("2025-11-03"), | ||||||||||
| }, | ||||||||||
| ], | ||||||||||
| }, | ||||||||||
| { | ||||||||||
| id: "deepseek-v3-0324", | ||||||||||
| name: "DeepSeek V3 (0324)", | ||||||||||
| description: "March 2024 version of DeepSeek V3 with improved performance.", | ||||||||||
| family: "deepseek", | ||||||||||
| releasedAt: new Date("2025-03-24"), | ||||||||||
| publishedAt: new Date("2025-03-24"), | ||||||||||
|
Comment on lines
+46
to
+47
|
||||||||||
| releasedAt: new Date("2025-03-24"), | |
| publishedAt: new Date("2025-03-24"), | |
| releasedAt: new Date("2024-03-24"), | |
| publishedAt: new Date("2024-03-24"), |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -548,6 +548,19 @@ export const openaiModels = [ | |
| reasoning: true, | ||
| jsonOutput: true, | ||
| }, | ||
| { | ||
| providerId: "nebius", | ||
| modelName: "nvidia/gpt-oss-120b", | ||
| inputPrice: 0.15 / 1e6, | ||
| outputPrice: 0.6 / 1e6, | ||
| requestPrice: 0, | ||
| contextSize: 128000, | ||
| maxOutput: undefined, | ||
| streaming: true, | ||
| vision: false, | ||
| tools: false, | ||
| jsonOutput: false, | ||
| }, | ||
|
Comment on lines
+551
to
+563
Contributor
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. 🧩 Analysis chain🏁 Script executed: # Search for all Nebius provider entries to check consistency
rg -n 'providerId: "nebius"' packages/models/src/models/openai.ts
# Also check the full context around the gpt-oss-120b and gpt-oss-20b entries
cat -n packages/models/src/models/openai.ts | sed -n '514,618p'Repository: theopenco/llmgateway Length of output: 3195 🏁 Script executed: # Check for reasoning field patterns across all providers to understand if omission is standard
rg -n 'reasoning:' packages/models/src/models/openai.ts | head -20
# Check if there are any other provider entries without reasoning field
rg -B 3 -A 3 'tools: false' packages/models/src/models/openai.tsRepository: theopenco/llmgateway Length of output: 2141 Add missing Both Nebius provider entries (lines 552 and 605) are missing the 🤖 Prompt for AI Agents |
||
| ], | ||
| }, | ||
| { | ||
|
|
@@ -588,6 +601,19 @@ export const openaiModels = [ | |
| reasoning: true, | ||
| jsonOutput: true, | ||
| }, | ||
| { | ||
| providerId: "nebius", | ||
| modelName: "nvidia/gpt-oss-20b", | ||
| inputPrice: 0.05 / 1e6, | ||
| outputPrice: 0.2 / 1e6, | ||
| requestPrice: 0, | ||
| contextSize: 128000, | ||
| maxOutput: undefined, | ||
| streaming: true, | ||
| vision: false, | ||
| tools: false, | ||
| jsonOutput: false, | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| import type { ModelDefinition } from "@/models.js"; | ||
|
|
||
| export const zhipuModels = [ | ||
| { | ||
| id: "glm-4-5", | ||
| name: "GLM-4.5", | ||
| description: "Zhipu AI's GLM-4.5 large language model.", | ||
| family: "zhipu", | ||
| releasedAt: new Date("2025-01-01"), | ||
| publishedAt: new Date("2025-01-01"), | ||
| providers: [ | ||
| { | ||
| providerId: "nebius", | ||
| modelName: "THUDM/GLM-4.5", | ||
| inputPrice: 0.6 / 1e6, | ||
| outputPrice: 2.2 / 1e6, | ||
| requestPrice: 0, | ||
| contextSize: 128000, | ||
| maxOutput: undefined, | ||
| streaming: true, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| id: "glm-4-5-air", | ||
| name: "GLM-4.5 Air", | ||
| description: "Zhipu AI's lightweight GLM-4.5 Air model.", | ||
| family: "zhipu", | ||
| releasedAt: new Date("2025-01-01"), | ||
| publishedAt: new Date("2025-01-01"), | ||
| providers: [ | ||
| { | ||
| providerId: "nebius", | ||
| modelName: "THUDM/GLM-4.5-Air", | ||
| inputPrice: 0.2 / 1e6, | ||
| outputPrice: 1.2 / 1e6, | ||
| requestPrice: 0, | ||
| contextSize: 128000, | ||
| maxOutput: undefined, | ||
| streaming: true, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
| ], | ||
| }, | ||
| ] as const satisfies ModelDefinition[]; |
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.
Align DeepSeek V3 (0324) description year with releasedAt/publishedAt
Description says “March 2024 version” but
releasedAt/publishedAtare2025-03-24. One of these is likely off by a year; please align description and dates so downstream consumers don’t get confused when sorting/filtering by release date.🤖 Prompt for AI Agents