mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 19:32:27 +00:00
refactor: pluginize litellm auth onboarding
This commit is contained in:
@@ -8010,6 +8010,48 @@ export const GENERATED_BUNDLED_PLUGIN_METADATA = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
dirName: "litellm",
|
||||
idHint: "litellm",
|
||||
source: {
|
||||
source: "./index.ts",
|
||||
built: "index.js",
|
||||
},
|
||||
packageName: "@openclaw/litellm-provider",
|
||||
packageVersion: "2026.3.26",
|
||||
packageDescription: "OpenClaw LiteLLM provider plugin",
|
||||
packageManifest: {
|
||||
extensions: ["./index.ts"],
|
||||
},
|
||||
manifest: {
|
||||
id: "litellm",
|
||||
configSchema: {
|
||||
type: "object",
|
||||
additionalProperties: false,
|
||||
properties: {},
|
||||
},
|
||||
providers: ["litellm"],
|
||||
providerAuthEnvVars: {
|
||||
litellm: ["LITELLM_API_KEY"],
|
||||
},
|
||||
providerAuthChoices: [
|
||||
{
|
||||
provider: "litellm",
|
||||
method: "api-key",
|
||||
choiceId: "litellm-api-key",
|
||||
choiceLabel: "LiteLLM API key",
|
||||
choiceHint: "Unified gateway for 100+ LLM providers",
|
||||
groupId: "litellm",
|
||||
groupLabel: "LiteLLM",
|
||||
groupHint: "Unified LLM gateway (100+ providers)",
|
||||
optionKey: "litellmApiKey",
|
||||
cliFlag: "--litellm-api-key",
|
||||
cliOption: "--litellm-api-key <key>",
|
||||
cliDescription: "LiteLLM API key",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
dirName: "llm-task",
|
||||
idHint: "llm-task",
|
||||
|
||||
@@ -16,6 +16,7 @@ export const BUNDLED_PROVIDER_AUTH_ENV_VAR_CANDIDATES = {
|
||||
kilocode: ["KILOCODE_API_KEY"],
|
||||
kimi: ["KIMI_API_KEY", "KIMICODE_API_KEY"],
|
||||
"kimi-coding": ["KIMI_API_KEY", "KIMICODE_API_KEY"],
|
||||
litellm: ["LITELLM_API_KEY"],
|
||||
"microsoft-foundry": ["AZURE_OPENAI_API_KEY"],
|
||||
minimax: ["MINIMAX_API_KEY"],
|
||||
"minimax-portal": ["MINIMAX_OAUTH_TOKEN", "MINIMAX_API_KEY"],
|
||||
|
||||
@@ -3,8 +3,6 @@ import type { OpenClawConfig } from "../config/config.js";
|
||||
import { resolveManifestProviderAuthChoice } from "./provider-auth-choices.js";
|
||||
|
||||
const PREFERRED_PROVIDER_BY_AUTH_CHOICE: Partial<Record<string, string>> = {
|
||||
chutes: "chutes",
|
||||
"litellm-api-key": "litellm",
|
||||
"custom-api-key": "custom",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user