refactor: trim provider model constants · openclaw/openclaw@b15faae
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,6 @@ const BYTEPLUS_CODING_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
|
14 | 14 | |
15 | 15 | export const BYTEPLUS_BASE_URL = BYTEPLUS_MANIFEST_PROVIDER.baseUrl; |
16 | 16 | export const BYTEPLUS_CODING_BASE_URL = BYTEPLUS_CODING_MANIFEST_PROVIDER.baseUrl; |
17 | | -export const BYTEPLUS_DEFAULT_MODEL_ID = "seed-1-8-251228"; |
18 | 17 | |
19 | 18 | export const BYTEPLUS_DEFAULT_COST = { |
20 | 19 | input: 0.0001, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,6 @@ export const STEPFUN_PLAN_CN_BASE_URL = "https://api.stepfun.com/step_plan/v1";
|
11 | 11 | export const STEPFUN_PLAN_INTL_BASE_URL = "https://api.stepfun.ai/step_plan/v1"; |
12 | 12 | |
13 | 13 | const STEPFUN_DEFAULT_MODEL_ID = "step-3.5-flash"; |
14 | | -export const STEPFUN_FLASH_2603_MODEL_ID = "step-3.5-flash-2603"; |
15 | 14 | export const STEPFUN_DEFAULT_MODEL_REF = `${STEPFUN_PROVIDER_ID}/${STEPFUN_DEFAULT_MODEL_ID}`; |
16 | 15 | export const STEPFUN_PLAN_DEFAULT_MODEL_REF = `${STEPFUN_PLAN_PROVIDER_ID}/${STEPFUN_DEFAULT_MODEL_ID}`; |
17 | 16 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,16 +14,6 @@ const DOUBAO_CODING_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
|
14 | 14 | |
15 | 15 | export const DOUBAO_BASE_URL = DOUBAO_MANIFEST_PROVIDER.baseUrl; |
16 | 16 | export const DOUBAO_CODING_BASE_URL = DOUBAO_CODING_MANIFEST_PROVIDER.baseUrl; |
17 | | -export const DOUBAO_DEFAULT_MODEL_ID = "doubao-seed-1-8-251228"; |
18 | | -export const DOUBAO_CODING_DEFAULT_MODEL_ID = "ark-code-latest"; |
19 | | -export const DOUBAO_DEFAULT_MODEL_REF = `volcengine/${DOUBAO_DEFAULT_MODEL_ID}`; |
20 | | - |
21 | | -export const DOUBAO_DEFAULT_COST = { |
22 | | -input: 0.0001, |
23 | | -output: 0.0002, |
24 | | -cacheRead: 0, |
25 | | -cacheWrite: 0, |
26 | | -}; |
27 | 17 | |
28 | 18 | export const DOUBAO_MODEL_CATALOG: ModelDefinitionConfig[] = DOUBAO_MANIFEST_PROVIDER.models; |
29 | 19 | export const DOUBAO_CODING_MODEL_CATALOG: ModelDefinitionConfig[] = |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -25,10 +25,6 @@ export function applyXaiProviderConfig(cfg: OpenClawConfig): OpenClawConfig {
|
25 | 25 | return xaiPresetAppliers.applyProviderConfig(cfg, "openai-responses"); |
26 | 26 | } |
27 | 27 | |
28 | | -export function applyXaiResponsesApiConfig(cfg: OpenClawConfig): OpenClawConfig { |
29 | | -return xaiPresetAppliers.applyProviderConfig(cfg, "openai-responses"); |
30 | | -} |
31 | | - |
32 | 28 | export function applyXaiConfig(cfg: OpenClawConfig): OpenClawConfig { |
33 | 29 | return xaiPresetAppliers.applyConfig(cfg, "openai-responses"); |
34 | 30 | } |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。