deepinfra: Add script & sync latest DeepInfra models#1358
Open
GodTamIt wants to merge 6 commits intoanomalyco:devfrom
Open
deepinfra: Add script & sync latest DeepInfra models#1358GodTamIt wants to merge 6 commits intoanomalyco:devfrom
GodTamIt wants to merge 6 commits intoanomalyco:devfrom
Conversation
Author
|
I filtered out a lot of unnecessary or older models in the change so it doesn't overwhelm the menus in OpenCode, per some discussion in Discord. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
DeepInfra Model Sync Changes
Summary
This change adds a new script to keep DeepInfra models in sync. It then uses the script to update the current corpus of models from DeepInfra updated.
Note: The script uses an allowlist approach for providers - only explicitly approved providers are included. This is intentional as most models from DeepInfra should not be tracked in the database.
Changes Overview
DeepInfra Sync Script
Added:
packages/core/script/generate-deepinfra.tsScript Features
Data Fetching:
https://api.deepinfra.com/v1/openai/modelsendpointSmart Filtering:
CLI Flags:
--dry-run: Preview changes without writing files--new-only: Only create new models, skip updates--no-delete: Keep orphaned files instead of deletingSync DeepInfra Models
New Models Added
Qwen (Alibaba):
Qwen3-14B,Qwen3-32BQwen3-235B-A22B-Instruct-2507(with MoE architecture)Qwen3-235B-A22B-Thinking-2507(reasoning variant)Qwen3-30B-A3B(MoE variant)Qwen3-MaxandQwen3-Max-ThinkingQwen3-Next-80B-A3B-InstructQwen3-VL-235B-A22B-Instruct(vision-language)Qwen3-VL-30B-A3B-InstructQwen3.5series: 0.8B, 2B, 4B, 9B, 27B, 35B-A3B, 122B-A10B, 397B-A17BDeepSeek:
DeepSeek-OCR- OCR-specialized modelDeepSeek-R1-0528-Turbo- Optimized reasoningDeepSeek-R1-Distill-Llama-70B- Distilled variantAnthropic:
claude-4-sonnet- New Sonnet model supportedMeta Llama:
Llama-3.2-11B-Vision-Instruct- Vision-capable modelLlama-Guard-4-12B- Safety modelOpenAI:
gpt-oss-120b-Turbo- Optimized variantNVIDIA:
Llama-3.3-Nemotron-Super-49B-v1.5NVIDIA-Nemotron-3-Super-120B-A12BNVIDIA-Nemotron-Nano-12B-v2-VL(vision-language)NVIDIA-Nemotron-Nano-9B-v2Nemotron-3-Nano-30B-A3BMoonshot AI:
Kimi-K2.5-Turbo- Optimized variantStepFun:
Step-3.5-FlashModels Updated (22)
Capability & Pricing Updates:
MiniMax-M2.1andMiniMax-M2.5- Updated capabilitiesQwen3-Coder-480B-A35B-Instructand-Turbo- Fixed pricing fieldsclaude-3-7-sonnet-latest- Updated metadataclaude-4-opus- Updated capabilitiesDeepSeek-R1-0528- Revised pricing structureDeepSeek-V3.2- Updated context limitsLlama-3.3-70B-Instruct-Turbo- Capability adjustmentsLlama-4-Maverick-17B-128E-Instruct-FP8- Metadata updatesLlama-4-Scout-17B-16E-Instruct- Capability refinementsKimi-K2-Instruct-0905,Kimi-K2-Thinking,Kimi-K2.5- Updated pricinggpt-oss-120bandgpt-oss-20b- Pricing adjustmentsZhipu AI (zai-org) GLM Series:
GLM-4.6,GLM-4.6V,GLM-4.7,GLM-4.7-Flash,GLM-5- Comprehensive updates to pricing, context limits, and capabilitiesModels Removed (2)
Obsolete Models:
MiniMaxAI/MiniMax-M2- No longer available via APIzai-org/GLM-4.5- DiscontinuedHow to Use
Running the Sync
Validation
After running the sync, validate the generated configurations:
Impact
This change significantly expands the DeepInfra provider coverage, adding:
Fixes #1043