UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

32 lines (31 loc) • 1.09 kB
//#region src/commands/onboard-inference-ambient.ts const OPENAI_API_DEFAULT_MODEL_REF = "openai/gpt-6-astra"; const ANTHROPIC_API_DEFAULT_MODEL_REF = "anthropic/claude-opus-5-5"; const CLAUDE_CLI_DEFAULT_MODEL_REF = "claude-cli/claude-opus-5-5"; const CODEX_APP_SERVER_DEFAULT_MODEL_REF = "openai/gpt-6-astra"; const GEMINI_CLI_DEFAULT_MODEL_REF = "google-gemini-cli/gemini-3.1-pro-preview"; function detectAmbientInferenceBackends(e = process.env) { const t = []; for (const [n, r, i] of [[ "openai", "OpenAI", OPENAI_API_DEFAULT_MODEL_REF ], [ "anthropic", "Anthropic", ANTHROPIC_API_DEFAULT_MODEL_REF ]]) { const a = `${n.toUpperCase()}_API_KEY`; if (!e[a]?.trim()) continue; t.push({ kind: `${n}-api-key`, modelRef: i, label: `${r} API key`, detail: `${a} set`, credentials: true }); } return t; } //#endregion export { OPENAI_API_DEFAULT_MODEL_REF as a, GEMINI_CLI_DEFAULT_MODEL_REF as i, CLAUDE_CLI_DEFAULT_MODEL_REF as n, detectAmbientInferenceBackends as o, CODEX_APP_SERVER_DEFAULT_MODEL_REF as r, ANTHROPIC_API_DEFAULT_MODEL_REF as t };