chore(deadcode): drop duplicate provider default refs · openclaw/openclaw@b43eedb
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,6 @@ import { asPositiveSafeInteger } from "openclaw/plugin-sdk/string-coerce-runtime
|
11 | 11 | export const VERCEL_AI_GATEWAY_PROVIDER_ID = "vercel-ai-gateway"; |
12 | 12 | export const VERCEL_AI_GATEWAY_BASE_URL = "https://ai-gateway.vercel.sh"; |
13 | 13 | export const VERCEL_AI_GATEWAY_DEFAULT_MODEL_ID = "anthropic/claude-opus-4.6"; |
14 | | -export const VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF = `${VERCEL_AI_GATEWAY_PROVIDER_ID}/${VERCEL_AI_GATEWAY_DEFAULT_MODEL_ID}`; |
15 | 14 | export const VERCEL_AI_GATEWAY_DEFAULT_CONTEXT_WINDOW = 200_000; |
16 | 15 | export const VERCEL_AI_GATEWAY_DEFAULT_MAX_TOKENS = 128_000; |
17 | 16 | export const VERCEL_AI_GATEWAY_DEFAULT_COST = { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,7 +12,7 @@ import {
|
12 | 12 | } from "./model-compat.js"; |
13 | 13 | |
14 | 14 | export { buildXaiProvider } from "./provider-catalog.js"; |
15 | | -export { applyXaiConfig, applyXaiProviderConfig } from "./onboard.js"; |
| 15 | +export { applyXaiConfig, applyXaiProviderConfig, XAI_DEFAULT_MODEL_REF } from "./onboard.js"; |
16 | 16 | export { buildXaiImageGenerationProvider } from "./image-generation-provider.js"; |
17 | 17 | export { |
18 | 18 | buildXaiCatalogModels, |
@@ -22,7 +22,6 @@ export {
|
22 | 22 | XAI_DEFAULT_CONTEXT_WINDOW, |
23 | 23 | XAI_DEFAULT_IMAGE_MODEL, |
24 | 24 | XAI_DEFAULT_MODEL_ID, |
25 | | -XAI_DEFAULT_MODEL_REF, |
26 | 25 | XAI_DEFAULT_MAX_TOKENS, |
27 | 26 | XAI_IMAGE_MODELS, |
28 | 27 | } from "./model-definitions.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,6 @@ export const XAI_DEFAULT_MAX_TOKENS = 64_000;
|
13 | 13 | const XAI_LEGACY_CONTEXT_WINDOW = 131_072; |
14 | 14 | const XAI_LEGACY_MAX_TOKENS = 8_192; |
15 | 15 | export const XAI_DEFAULT_MODEL_ID = "grok-4.3"; |
16 | | -export const XAI_DEFAULT_MODEL_REF = `xai/${XAI_DEFAULT_MODEL_ID}`; |
17 | 16 | |
18 | 17 | type XaiCost = ModelDefinitionConfig["cost"]; |
19 | 18 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,6 @@ export const ZAI_GLOBAL_BASE_URL = "https://api.z.ai/api/paas/v4";
|
9 | 9 | export const ZAI_CN_BASE_URL = "https://open.bigmodel.cn/api/paas/v4"; |
10 | 10 | export const ZAI_DEFAULT_MODEL_ID = "glm-5.1"; |
11 | 11 | export const ZAI_CODING_DEFAULT_MODEL_ID = "glm-5.2"; |
12 | | -export const ZAI_DEFAULT_MODEL_REF = `zai/${ZAI_DEFAULT_MODEL_ID}`; |
13 | 12 | |
14 | 13 | const ZAI_MANIFEST_CATALOG = manifest.modelCatalog.providers.zai; |
15 | 14 | const ZAI_MANIFEST_PROVIDER = buildManifestModelProviderConfig({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。