mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 02:20:26 +00:00
refactor(providers): centralize provider model policy
This commit is contained in:
@@ -6,12 +6,14 @@ export const BUNDLED_PROVIDER_AUTH_ENV_VAR_CANDIDATES = {
|
||||
byteplus: ["BYTEPLUS_API_KEY"],
|
||||
chutes: ["CHUTES_API_KEY", "CHUTES_OAUTH_TOKEN"],
|
||||
"cloudflare-ai-gateway": ["CLOUDFLARE_AI_GATEWAY_API_KEY"],
|
||||
deepgram: ["DEEPGRAM_API_KEY"],
|
||||
deepseek: ["DEEPSEEK_API_KEY"],
|
||||
exa: ["EXA_API_KEY"],
|
||||
fal: ["FAL_KEY"],
|
||||
firecrawl: ["FIRECRAWL_API_KEY"],
|
||||
"github-copilot": ["COPILOT_GITHUB_TOKEN", "GH_TOKEN", "GITHUB_TOKEN"],
|
||||
google: ["GEMINI_API_KEY", "GOOGLE_API_KEY"],
|
||||
groq: ["GROQ_API_KEY"],
|
||||
huggingface: ["HUGGINGFACE_HUB_TOKEN", "HF_TOKEN"],
|
||||
kilocode: ["KILOCODE_API_KEY"],
|
||||
kimi: ["KIMI_API_KEY", "KIMICODE_API_KEY"],
|
||||
|
||||
@@ -66,8 +66,10 @@ describe("bundled provider auth env vars", () => {
|
||||
it("reads bundled provider auth env vars from plugin manifests", () => {
|
||||
expectBundledProviderEnvVars({
|
||||
brave: ["BRAVE_API_KEY"],
|
||||
deepgram: ["DEEPGRAM_API_KEY"],
|
||||
firecrawl: ["FIRECRAWL_API_KEY"],
|
||||
"github-copilot": ["COPILOT_GITHUB_TOKEN", "GH_TOKEN", "GITHUB_TOKEN"],
|
||||
groq: ["GROQ_API_KEY"],
|
||||
perplexity: ["PERPLEXITY_API_KEY", "OPENROUTER_API_KEY"],
|
||||
tavily: ["TAVILY_API_KEY"],
|
||||
"minimax-portal": ["MINIMAX_OAUTH_TOKEN", "MINIMAX_API_KEY"],
|
||||
|
||||
Reference in New Issue
Block a user