feat(models): add DeepSeek V4 Pro and V4 Flash via OpenRouter#99
Open
incogbyte wants to merge 1 commit into
Open
feat(models): add DeepSeek V4 Pro and V4 Flash via OpenRouter#99incogbyte wants to merge 1 commit into
incogbyte wants to merge 1 commit into
Conversation
Add the current DeepSeek models (deepseek-v4-pro, deepseek-v4-flash, both with 1M context and reasoning) routed through the OpenRouter provider, following the existing Grok/Mercury pattern. DeepSeek is not a native Caido upstream provider, so OpenRouter is the supported path. The legacy deepseek-chat/deepseek-reasoner are deprecated 2026/07/24, so only the V4 models are included. Both are enabled by default for agent and float usage. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Summary
Adds the current DeepSeek models to Shift, routed through the OpenRouter provider (following the existing Grok/Mercury pattern):
deepseek/deepseek-v4-pro— 1M context, reasoning ✅deepseek/deepseek-v4-flash— 1M context, reasoning ✅Both are enabled by default for
agentandfloatusage.Why via OpenRouter (not a native
deepseekprovider)Caido's
AIUpstreamProviderIdonly supportsanthropic | google | openai | openrouter. TheModelProviderenum inpackages/shared/src/models.tsis constrained withsatisfies Record<string, AIUpstreamProviderId>, so a nativedeepseekprovider would fail to compile and Caido couldn't route it. OpenRouter is already a supported provider and exposes DeepSeek, so this is the clean, idiomatic path — no shared-type or frontend changes needed.Why V4 models only
Per the DeepSeek API docs,
deepseek-chatanddeepseek-reasonerare deprecated on 2026/07/24 (they map to the non-thinking/thinking modes ofdeepseek-v4-flash). Only the current V4 models are included to avoid shipping something that breaks within weeks.Changes
packages/backend/src/models/openrouter.ts:DEEPSEEK_V4_PROandDEEPSEEK_V4_FLASHtoOpenRouterModelIdsopenrouterModels(providerOpenRouter,contextWindow: 1_000_000,reasoning: true)defaultOpenRouterModelsConfigwith["agent", "float"]Validation
openrouter.spec.ts+stores/models/update.spec.ts→ 17/17 passingtsc --noEmit(backend) → no errorsHow to use
🤖 Generated with Claude Code