Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apps/desktop-tauri/src/components/providers/providerIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import crof from "./icons/ProviderIcon-crof.svg?raw";
import crossmodel from "./icons/ProviderIcon-crossmodel.svg?raw";
import cursor from "./icons/ProviderIcon-cursor.svg?raw";
import deepgram from "./icons/ProviderIcon-deepgram.svg?raw";
import deepinfra from "./icons/ProviderIcon-deepinfra.svg?raw";
import deepseek from "./icons/ProviderIcon-deepseek.svg?raw";
import doubao from "./icons/ProviderIcon-doubao.svg?raw";
import elevenlabs from "./icons/ProviderIcon-elevenlabs.svg?raw";
Expand Down Expand Up @@ -89,6 +90,7 @@ const RAW: Record<string, string> = {
crossmodel: tint(crossmodel),
cursor: tint(cursor),
deepgram: tint(deepgram),
deepinfra: tint(deepinfra),
deepseek: tint(deepseek),
doubao: tint(doubao),
elevenlabs: tint(elevenlabs),
Expand Down Expand Up @@ -139,6 +141,7 @@ export const PROVIDER_ICON_REGISTRY: Record<string, ProviderIcon> = {
copilot: { id: "copilot", brandColor: "#a855f7", fallbackLetter: "⬡", svgPath: RAW.copilot },
cursor: { id: "cursor", brandColor: "#00bfa5", fallbackLetter: "▸", svgPath: RAW.cursor },
deepgram: { id: "deepgram", brandColor: "#13ef93", fallbackLetter: "D", svgPath: RAW.deepgram },
deepinfra: { id: "deepinfra", brandColor: "#2a3275", fallbackLetter: "D", svgPath: RAW.deepinfra },
deepseek: { id: "deepseek", brandColor: "#527df0", fallbackLetter: "D", svgPath: RAW.deepseek },
elevenlabs: { id: "elevenlabs", brandColor: "#111827", fallbackLetter: "E", svgPath: RAW.elevenlabs },
factory: { id: "factory", brandColor: "#ff6b35", fallbackLetter: "◎", svgPath: RAW.factory },
Expand Down Expand Up @@ -211,6 +214,9 @@ const ALIASES: Record<string, string> = {
manicode: "codebuff",
"deep seek": "deepseek",
"deep-seek": "deepseek",
"deep infra": "deepinfra",
"deep-infra": "deepinfra",
di: "deepinfra",
codeium: "windsurf",
"xiaomi mimo": "mimo",
xiaomimimo: "mimo",
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop-tauri/src/surfaces/TrayPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import AgentSessions from "../components/AgentSessions";
const HAS_DASHBOARD = new Set([
"abacus", "alibaba", "alibabatokenplan", "amp", "augment",
"azureopenai", "bedrock", "claude", "codex", "codebuff",
"commandcode", "copilot", "crof", "crossmodel", "cursor", "deepgram", "deepseek",
"commandcode", "copilot", "crof", "crossmodel", "cursor", "deepgram", "deepinfra", "deepseek",
"doubao", "elevenlabs", "factory", "gemini", "grok", "groq",
"infini", "jetbrains", "kilo", "kimi", "kimik2", "kiro", "manus",
"mimo", "minimax", "mistral", "nanogpt", "ollama", "openaiapi",
Expand All @@ -49,7 +49,7 @@ const HAS_DASHBOARD = new Set([
/** Provider IDs that have a status page URL in the backend */
const HAS_STATUS_PAGE = new Set([
"alibabatokenplan", "amp", "augment", "azureopenai", "bedrock",
"claude", "codex", "copilot", "deepgram", "deepseek", "elevenlabs",
"claude", "codex", "copilot", "deepgram", "deepinfra", "deepseek", "elevenlabs",
"gemini", "grok", "groq", "kiro", "mistral", "openaiapi",
"openrouter", "vertexai", "windsurf",
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ function providerSourceHintShort(
case "bedrock":
case "nanogpt":
case "warp":
case "deepinfra":
case "doubao":
case "crof":
case "stepfun":
Expand Down
1 change: 1 addition & 0 deletions apps/desktop-tauri/src/test/providerCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const TEST_PROVIDER_CATALOG: Array<[string, string]> = [
["bedrock", "AWS Bedrock"],
["codebuff", "Codebuff"],
["deepseek", "DeepSeek"],
["deepinfra", "DeepInfra"],
["windsurf", "Windsurf"],
["manus", "Manus"],
["mimo", "Xiaomi MiMo"],
Expand Down
1 change: 1 addition & 0 deletions apps/desktop-tauri/src/types/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export type ProofProviderId =
| "mistral"
| "codebuff"
| "deepseek"
| "deepinfra"
| "windsurf"
| "manus"
| "mimo"
Expand Down
1 change: 1 addition & 0 deletions rust/src/core/credential_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ const PROVIDER_ACCOUNT_NAMES: &[(ProviderId, &str)] = &[
(ProviderId::Bedrock, "bedrock-aws-credentials"),
(ProviderId::Codebuff, "codebuff-api-token"),
(ProviderId::DeepSeek, "deepseek-api-token"),
(ProviderId::DeepInfra, "deepinfra-api-token"),
(ProviderId::Windsurf, "windsurf-local-cache"),
(ProviderId::Manus, "manus-cookie"),
(ProviderId::MiMo, "mimo-cookie"),
Expand Down
11 changes: 10 additions & 1 deletion rust/src/core/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pub enum ProviderId {
Bedrock,
Codebuff,
DeepSeek,
DeepInfra,
Windsurf,
Manus,
MiMo,
Expand Down Expand Up @@ -109,6 +110,7 @@ impl ProviderId {
ProviderId::Bedrock,
ProviderId::Codebuff,
ProviderId::DeepSeek,
ProviderId::DeepInfra,
ProviderId::Windsurf,
ProviderId::Manus,
ProviderId::MiMo,
Expand Down Expand Up @@ -173,6 +175,7 @@ impl ProviderId {
ProviderId::Bedrock => "bedrock",
ProviderId::Codebuff => "codebuff",
ProviderId::DeepSeek => "deepseek",
ProviderId::DeepInfra => "deepinfra",
ProviderId::Windsurf => "windsurf",
ProviderId::Manus => "manus",
ProviderId::MiMo => "mimo",
Expand Down Expand Up @@ -237,6 +240,7 @@ impl ProviderId {
ProviderId::Bedrock => "AWS Bedrock",
ProviderId::Codebuff => "Codebuff",
ProviderId::DeepSeek => "DeepSeek",
ProviderId::DeepInfra => "DeepInfra",
ProviderId::Windsurf => "Windsurf",
ProviderId::Manus => "Manus",
ProviderId::MiMo => "Xiaomi MiMo",
Expand Down Expand Up @@ -312,6 +316,7 @@ impl ProviderId {
ProviderId::Bedrock => None,
ProviderId::Codebuff => None,
ProviderId::DeepSeek => None,
ProviderId::DeepInfra => None,
ProviderId::Windsurf => None,
ProviderId::Doubao => None,
ProviderId::Crof => None,
Expand Down Expand Up @@ -373,6 +378,7 @@ impl ProviderId {
"bedrock" | "aws-bedrock" | "aws bedrock" => Some(ProviderId::Bedrock),
"codebuff" | "manicode" => Some(ProviderId::Codebuff),
"deepseek" | "deep-seek" | "ds" => Some(ProviderId::DeepSeek),
"deepinfra" | "deep-infra" | "di" => Some(ProviderId::DeepInfra),
"windsurf" | "codeium" => Some(ProviderId::Windsurf),
"manus" => Some(ProviderId::Manus),
"mimo" | "xiaomi" | "xiaomimimo" | "xiaomi-mimo" | "xiaomi mimo" => {
Expand Down Expand Up @@ -582,6 +588,8 @@ pub fn cli_name_map() -> HashMap<&'static str, ProviderId> {
map.insert("manicode", ProviderId::Codebuff);
map.insert("deep-seek", ProviderId::DeepSeek);
map.insert("ds", ProviderId::DeepSeek);
map.insert("deep-infra", ProviderId::DeepInfra);
map.insert("di", ProviderId::DeepInfra);
map.insert("codeium", ProviderId::Windsurf);
map.insert("google", ProviderId::Gemini);
map.insert("agy", ProviderId::Antigravity);
Expand Down Expand Up @@ -634,7 +642,7 @@ mod tests {
#[test]
fn test_provider_id_all() {
let all = ProviderId::all();
assert_eq!(all.len(), 58);
assert_eq!(all.len(), 59);
assert!(all.contains(&ProviderId::Claude));
assert!(all.contains(&ProviderId::Codex));
assert!(all.contains(&ProviderId::Kimi));
Expand All @@ -649,6 +657,7 @@ mod tests {
assert!(all.contains(&ProviderId::Bedrock));
assert!(all.contains(&ProviderId::Codebuff));
assert!(all.contains(&ProviderId::DeepSeek));
assert!(all.contains(&ProviderId::DeepInfra));
assert!(all.contains(&ProviderId::Windsurf));
assert!(all.contains(&ProviderId::Manus));
assert!(all.contains(&ProviderId::MiMo));
Expand Down
3 changes: 2 additions & 1 deletion rust/src/core/provider_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::providers::{
AbacusProvider, AlibabaProvider, AlibabaTokenPlanProvider, AmpProvider, AntigravityProvider,
AugmentProvider, AzureOpenAIProvider, BedrockProvider, ChutesProvider, ClaudeProvider,
CodebuffProvider, CodexProvider, CommandCodeProvider, CopilotProvider, CrofProvider,
CrossModelProvider, CursorProvider, DeepSeekProvider, DeepgramProvider, DevinProvider,
CrossModelProvider, CursorProvider, DeepInfraProvider, DeepSeekProvider, DeepgramProvider, DevinProvider,
DoubaoProvider, ElevenLabsProvider, FactoryProvider, GeminiProvider, GrokProvider,
GroqProvider, InfiniProvider, JetBrainsProvider, KiloProvider, KimiK2Provider, KimiProvider,
KiroProvider, LLMProxyProvider, LiteLLMProvider, ManusProvider, MiMoProvider, MiniMaxProvider,
Expand Down Expand Up @@ -60,6 +60,7 @@ pub fn instantiate(id: ProviderId) -> Box<dyn Provider> {
ProviderId::Bedrock => Box::new(BedrockProvider::new()),
ProviderId::Codebuff => Box::new(CodebuffProvider::new()),
ProviderId::DeepSeek => Box::new(DeepSeekProvider::new()),
ProviderId::DeepInfra => Box::new(DeepInfraProvider::new()),
ProviderId::Windsurf => Box::new(WindsurfProvider::new()),
ProviderId::Manus => Box::new(ManusProvider::new()),
ProviderId::MiMo => Box::new(MiMoProvider::new()),
Expand Down
10 changes: 10 additions & 0 deletions rust/src/core/token_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,16 @@ impl TokenAccountSupport {
requires_manual_cookie_source: false,
cookie_name: None,
}),
ProviderId::DeepInfra => Some(TokenAccountSupport {
title: "API keys",
subtitle: "Store multiple DeepInfra API keys.",
placeholder: "API key from deepinfra.com/dash",
injection: TokenInjection::Environment {
key: "DEEPINFRA_API_KEY".to_string(),
},
requires_manual_cookie_source: false,
cookie_name: None,
}),
ProviderId::Copilot => Some(TokenAccountSupport {
title: "GitHub accounts",
subtitle: "Store GitHub OAuth tokens for Copilot plan usage.",
Expand Down
Loading
Loading