mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-29 09:37:37 +08:00
feat(presets): add Amux provider preset for 6 apps
Non-partner aggregator across Claude Code, Claude Desktop, Codex, OpenCode, OpenClaw, and Hermes. Claude Code uses bare host api.amux.ai; Codex uses /v1 native Responses; the other three apps default to gpt-5.5. No Gemini preset. Registers the amux inline icon (currentColor) in the icon index and metadata.
This commit is contained in:
@@ -240,6 +240,17 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
partnerPromotionKey: "teamorouter",
|
||||
icon: "teamorouter",
|
||||
},
|
||||
{
|
||||
name: "Amux",
|
||||
websiteUrl: "https://amux.ai",
|
||||
apiKeyUrl: "https://amux.ai",
|
||||
category: "aggregator",
|
||||
baseUrl: "https://api.amux.ai",
|
||||
mode: "direct",
|
||||
apiFormat: "anthropic",
|
||||
modelRoutes: passthroughRoutes(),
|
||||
icon: "amux",
|
||||
},
|
||||
{
|
||||
name: "火山Agentplan",
|
||||
websiteUrl: "https://www.volcengine.com/product/ark",
|
||||
|
||||
@@ -300,6 +300,19 @@ export const providerPresets: ProviderPreset[] = [
|
||||
partnerPromotionKey: "teamorouter",
|
||||
icon: "teamorouter",
|
||||
},
|
||||
{
|
||||
name: "Amux",
|
||||
websiteUrl: "https://amux.ai",
|
||||
apiKeyUrl: "https://amux.ai",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://api.amux.ai",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
icon: "amux",
|
||||
},
|
||||
{
|
||||
name: "Gemini Native",
|
||||
websiteUrl: "https://ai.google.dev/gemini-api",
|
||||
|
||||
@@ -350,6 +350,20 @@ export const codexProviderPresets: CodexProviderPreset[] = [
|
||||
partnerPromotionKey: "teamorouter",
|
||||
icon: "teamorouter",
|
||||
},
|
||||
{
|
||||
name: "Amux",
|
||||
websiteUrl: "https://amux.ai",
|
||||
apiKeyUrl: "https://amux.ai",
|
||||
category: "aggregator",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"amux",
|
||||
"https://api.amux.ai/v1",
|
||||
"gpt-5.5",
|
||||
),
|
||||
endpointCandidates: ["https://api.amux.ai/v1"],
|
||||
icon: "amux",
|
||||
},
|
||||
{
|
||||
name: "Azure OpenAI",
|
||||
websiteUrl:
|
||||
|
||||
@@ -228,6 +228,23 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
||||
model: { default: "gpt-5.5", provider: "teamorouter" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Amux",
|
||||
websiteUrl: "https://amux.ai",
|
||||
apiKeyUrl: "https://amux.ai",
|
||||
settingsConfig: {
|
||||
name: "amux",
|
||||
base_url: "https://api.amux.ai/v1",
|
||||
api_key: "",
|
||||
api_mode: "chat_completions",
|
||||
models: [{ id: "gpt-5.5", name: "GPT-5.5" }],
|
||||
},
|
||||
category: "aggregator",
|
||||
icon: "amux",
|
||||
suggestedDefaults: {
|
||||
model: { default: "gpt-5.5", provider: "amux" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "火山Agentplan",
|
||||
websiteUrl: "https://www.volcengine.com/product/ark",
|
||||
|
||||
@@ -474,6 +474,40 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Amux",
|
||||
websiteUrl: "https://amux.ai",
|
||||
apiKeyUrl: "https://amux.ai",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://api.amux.ai/v1",
|
||||
apiKey: "",
|
||||
api: "openai-completions",
|
||||
models: [
|
||||
{
|
||||
id: "gpt-5.5",
|
||||
name: "GPT-5.5",
|
||||
contextWindow: 400000,
|
||||
},
|
||||
],
|
||||
},
|
||||
category: "aggregator",
|
||||
icon: "amux",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
suggestedDefaults: {
|
||||
model: {
|
||||
primary: "amux/gpt-5.5",
|
||||
},
|
||||
modelCatalog: {
|
||||
"amux/gpt-5.5": { alias: "GPT-5.5" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Unity2.ai",
|
||||
websiteUrl: "https://unity2.ai",
|
||||
|
||||
@@ -424,6 +424,32 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Amux",
|
||||
websiteUrl: "https://amux.ai",
|
||||
apiKeyUrl: "https://amux.ai",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/openai-compatible",
|
||||
name: "Amux",
|
||||
options: {
|
||||
baseURL: "https://api.amux.ai/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"gpt-5.5": { name: "GPT-5.5" },
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
icon: "amux",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "火山Agentplan",
|
||||
websiteUrl: "https://www.volcengine.com/product/ark",
|
||||
|
||||
Reference in New Issue
Block a user