mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 21:30:17 +08:00
refactor(opencode): simplify API format selector
- Reduce npm package options from 10 to 4 core API formats (OpenAI, OpenAI Compatible, Anthropic, Google) - Rename "AI SDK Package" to "API Format" in i18n (zh/en/ja) - Remove check icon from Select dropdown items for cleaner UI
This commit is contained in:
@@ -32,15 +32,9 @@ export interface OpenCodeProviderPreset {
|
||||
*/
|
||||
export const opencodeNpmPackages = [
|
||||
{ value: "@ai-sdk/openai", label: "OpenAI" },
|
||||
{ value: "@ai-sdk/anthropic", label: "Anthropic" },
|
||||
{ value: "@ai-sdk/openai-compatible", label: "OpenAI Compatible" },
|
||||
{ value: "@ai-sdk/anthropic", label: "Anthropic" },
|
||||
{ value: "@ai-sdk/google", label: "Google (Gemini)" },
|
||||
{ value: "@ai-sdk/azure", label: "Azure OpenAI" },
|
||||
{ value: "@ai-sdk/amazon-bedrock", label: "Amazon Bedrock" },
|
||||
{ value: "@ai-sdk/cohere", label: "Cohere" },
|
||||
{ value: "@ai-sdk/mistral", label: "Mistral" },
|
||||
{ value: "@ai-sdk/groq", label: "Groq" },
|
||||
{ value: "@ai-sdk/deepseek", label: "DeepSeek" },
|
||||
] as const;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user