Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/agent/provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe("kindMatches", () => {

describe("PROVIDER_PRESETS", () => {
it("has all expected providers", () => {
const expected = ["openai", "anthropic", "google", "openrouter", "ollama", "llamacpp", "mimo", "atlascloud", "astraflow"] as const;
const expected = ["openai", "anthropic", "google", "openrouter", "ollama", "llamacpp", "mimo", "atlascloud", "astraflow", "cheaperinference"] as const;
for (const key of expected) {
expect(PROVIDER_PRESETS[key]).toBeDefined();
}
Expand Down
7 changes: 6 additions & 1 deletion src/shared/providerCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ const PRESETS = {
"baseUrl": "https://api-us-ca.umodelverse.ai/v1",
"needsKey": true
},
"cheaperinference": {
"label": "Cheaper Inference",
"baseUrl": "https://api.cheaperinference.com/v1",
"needsKey": true
},
"xai": {
"label": "xAI",
"baseUrl": "https://api.x.ai/v1",
Expand Down Expand Up @@ -444,5 +449,5 @@ const PRESETS = {
} as const;
export type ProviderKind = keyof typeof PRESETS;
export const PROVIDER_PRESETS: Record<ProviderKind, ProviderPreset> = PRESETS;
export const POPULAR_KINDS: ProviderKind[] = ["anthropic","openai","google","xai","deepseek","moonshot","z-ai","minimax","qwen","openrouter","mimo","atlascloud","astraflow","alicode-intl","alicode","azure","blackbox","byteplus","cerebras","chutes","cloudflare-ai","cohere","commandcode","featherless","fireworks","glm-cn","glm","groq","hyperbolic","kimchi","minimax-cn","mistral","nebius","nvidia","ollama-cloud","opencode-go","opencode-zen","perplexity","perplexity-agent","siliconflow","together","venice","vercel-ai-gateway","vertex-partner","vertex","volcengine-ark","alims-intl","api-airforce","baidu","bazaarlink","kilo-gateway","llm7","tencent","morph","poolside","tokenrouter","alitp-intl"];
export const POPULAR_KINDS: ProviderKind[] = ["anthropic","openai","google","xai","deepseek","moonshot","z-ai","minimax","qwen","openrouter","mimo","atlascloud","astraflow","cheaperinference","alicode-intl","alicode","azure","blackbox","byteplus","cerebras","chutes","cloudflare-ai","cohere","commandcode","featherless","fireworks","glm-cn","glm","groq","hyperbolic","kimchi","minimax-cn","mistral","nebius","nvidia","ollama-cloud","opencode-go","opencode-zen","perplexity","perplexity-agent","siliconflow","together","venice","vercel-ai-gateway","vertex-partner","vertex","volcengine-ark","alims-intl","api-airforce","baidu","bazaarlink","kilo-gateway","llm7","tencent","morph","poolside","tokenrouter","alitp-intl"];
export const FREE_KINDS: ProviderKind[] = ["opencode"];
2 changes: 1 addition & 1 deletion webview-ui/sidebar/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface ModelOption {
value: string;
}

export type ModelKind = "openai" | "anthropic" | "google" | "openrouter" | "ollama" | "llamacpp" | "mimo" | "atlascloud" | "astraflow" | "claude-code" | "codex" | "antigravity";
export type ModelKind = "openai" | "anthropic" | "google" | "openrouter" | "ollama" | "llamacpp" | "mimo" | "atlascloud" | "astraflow" | "cheaperinference" | "claude-code" | "codex" | "antigravity";

export interface ModelDef {
id: string;
Expand Down