refactor: trim provider constant exports · openclaw/openclaw@678ef01
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -export const DEFAULT_GRADIUM_BASE_URL = "https://api.gradium.ai"; |
| 1 | +const DEFAULT_GRADIUM_BASE_URL = "https://api.gradium.ai"; |
2 | 2 | export const DEFAULT_GRADIUM_VOICE_ID = "YTpq7expH9539ERJ"; |
3 | 3 | |
4 | 4 | export const GRADIUM_VOICES = [ |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { SpeechVoiceOption } from "openclaw/plugin-sdk/speech-core"; |
2 | 2 | import { fetchWithSsrFGuard, type SsrFPolicy } from "openclaw/plugin-sdk/ssrf-runtime"; |
3 | 3 | |
4 | | -export const DEFAULT_INWORLD_BASE_URL = "https://api.inworld.ai"; |
| 4 | +const DEFAULT_INWORLD_BASE_URL = "https://api.inworld.ai"; |
5 | 5 | export const DEFAULT_INWORLD_VOICE_ID = "Sarah"; |
6 | 6 | export const DEFAULT_INWORLD_MODEL_ID = "inworld-tts-1.5-max"; |
7 | 7 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-shared"; |
2 | 2 | |
3 | | -export const KIMI_BASE_URL = "https://api.kimi.com/coding/"; |
| 3 | +const KIMI_BASE_URL = "https://api.kimi.com/coding/"; |
4 | 4 | const KIMI_CODING_USER_AGENT = "claude-code/0.1.0"; |
5 | | -export const KIMI_DEFAULT_MODEL_ID = "kimi-code"; |
6 | | -export const KIMI_LEGACY_MODEL_ID = "k2p5"; |
| 5 | +const KIMI_DEFAULT_MODEL_ID = "kimi-code"; |
| 6 | +const KIMI_LEGACY_MODEL_ID = "k2p5"; |
7 | 7 | const KIMI_CODING_DEFAULT_CONTEXT_WINDOW = 262144; |
8 | 8 | const KIMI_CODING_DEFAULT_MAX_TOKENS = 32768; |
9 | 9 | const KIMI_CODING_DEFAULT_COST = { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@ import {
|
16 | 16 | } from "openclaw/plugin-sdk/provider-http"; |
17 | 17 | import { MOONSHOT_DEFAULT_MODEL_ID } from "./provider-catalog.js"; |
18 | 18 | |
19 | | -export const DEFAULT_MOONSHOT_VIDEO_BASE_URL = "https://api.moonshot.ai/v1"; |
| 19 | +const DEFAULT_MOONSHOT_VIDEO_BASE_URL = "https://api.moonshot.ai/v1"; |
20 | 20 | const DEFAULT_MOONSHOT_VIDEO_MODEL = MOONSHOT_DEFAULT_MODEL_ID; |
21 | 21 | const DEFAULT_MOONSHOT_VIDEO_PROMPT = "Describe the video."; |
22 | 22 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ import {
|
7 | 7 | } from "openclaw/plugin-sdk/media-understanding"; |
8 | 8 | import { OPENAI_DEFAULT_AUDIO_TRANSCRIPTION_MODEL } from "./default-models.js"; |
9 | 9 | |
10 | | -export const DEFAULT_OPENAI_AUDIO_BASE_URL = "https://api.openai.com/v1"; |
| 10 | +const DEFAULT_OPENAI_AUDIO_BASE_URL = "https://api.openai.com/v1"; |
11 | 11 | |
12 | 12 | export async function transcribeOpenAiAudio(params: AudioTranscriptionRequest) { |
13 | 13 | return await transcribeOpenAiCompatibleAudio({ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,8 +4,8 @@ import { normalizeModelCompat } from "openclaw/plugin-sdk/provider-model-shared"
|
4 | 4 | |
5 | 5 | const PROVIDER_ID = "opencode-go"; |
6 | 6 | |
7 | | -export const OPENCODE_GO_OPENAI_BASE_URL = "https://opencode.ai/zen/go/v1"; |
8 | | -export const OPENCODE_GO_ANTHROPIC_BASE_URL = "https://opencode.ai/zen/go"; |
| 7 | +const OPENCODE_GO_OPENAI_BASE_URL = "https://opencode.ai/zen/go/v1"; |
| 8 | +const OPENCODE_GO_ANTHROPIC_BASE_URL = "https://opencode.ai/zen/go"; |
9 | 9 | |
10 | 10 | const OPENCODE_GO_SUPPLEMENTAL_MODELS = ( |
11 | 11 | [ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ export const STEPFUN_STANDARD_INTL_BASE_URL = "https://api.stepfun.ai/v1";
|
10 | 10 | 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 | | -export const STEPFUN_DEFAULT_MODEL_ID = "step-3.5-flash"; |
| 13 | +const STEPFUN_DEFAULT_MODEL_ID = "step-3.5-flash"; |
14 | 14 | export const STEPFUN_FLASH_2603_MODEL_ID = "step-3.5-flash-2603"; |
15 | 15 | export const STEPFUN_DEFAULT_MODEL_REF = `${STEPFUN_PROVIDER_ID}/${STEPFUN_DEFAULT_MODEL_ID}`; |
16 | 16 | export const STEPFUN_PLAN_DEFAULT_MODEL_REF = `${STEPFUN_PLAN_PROVIDER_ID}/${STEPFUN_DEFAULT_MODEL_ID}`; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。