Quotio is a local OpenAI-compatible proxy that routes to various AI models (Claude via Gemini credits, etc.). This adds it as a first-class provider option in the onboarding wizard, eliminating the need for manual config edits. - Add 'quotio' to AuthChoice type - Add Quotio group to provider options - Create dedicated handler with URL/API key prompts - Configure provider with Claude Opus 4.5, Sonnet 4, Gemini 3 Flash models - Use openai-completions API for compatibility
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import type { AuthChoice } from "./onboard-types.js";
|
|
|
|
const PREFERRED_PROVIDER_BY_AUTH_CHOICE: Partial<Record<AuthChoice, string>> = {
|
|
oauth: "anthropic",
|
|
"setup-token": "anthropic",
|
|
"claude-cli": "anthropic",
|
|
token: "anthropic",
|
|
apiKey: "anthropic",
|
|
"openai-codex": "openai-codex",
|
|
"codex-cli": "openai-codex",
|
|
chutes: "chutes",
|
|
"openai-api-key": "openai",
|
|
"openrouter-api-key": "openrouter",
|
|
"ai-gateway-api-key": "vercel-ai-gateway",
|
|
"moonshot-api-key": "moonshot",
|
|
"kimi-code-api-key": "kimi-code",
|
|
"gemini-api-key": "google",
|
|
"google-antigravity": "google-antigravity",
|
|
"google-gemini-cli": "google-gemini-cli",
|
|
"zai-api-key": "zai",
|
|
"synthetic-api-key": "synthetic",
|
|
"venice-api-key": "venice",
|
|
"github-copilot": "github-copilot",
|
|
"copilot-proxy": "copilot-proxy",
|
|
"minimax-cloud": "minimax",
|
|
"minimax-api": "minimax",
|
|
"minimax-api-lightning": "minimax",
|
|
minimax: "lmstudio",
|
|
"opencode-zen": "opencode",
|
|
"qwen-portal": "qwen-portal",
|
|
quotio: "quotio",
|
|
};
|
|
|
|
export function resolvePreferredProviderForAuthChoice(choice: AuthChoice): string | undefined {
|
|
return PREFERRED_PROVIDER_BY_AUTH_CHOICE[choice];
|
|
}
|