Skip to content

Commit 678ef01

Browse files
committed
refactor: trim provider constant exports
1 parent 8d288e2 commit 678ef01

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

extensions/gradium/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const DEFAULT_GRADIUM_BASE_URL = "https://api.gradium.ai";
1+
const DEFAULT_GRADIUM_BASE_URL = "https://api.gradium.ai";
22
export const DEFAULT_GRADIUM_VOICE_ID = "YTpq7expH9539ERJ";
33

44
export const GRADIUM_VOICES = [

extensions/inworld/tts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { SpeechVoiceOption } from "openclaw/plugin-sdk/speech-core";
22
import { fetchWithSsrFGuard, type SsrFPolicy } from "openclaw/plugin-sdk/ssrf-runtime";
33

4-
export const DEFAULT_INWORLD_BASE_URL = "https://api.inworld.ai";
4+
const DEFAULT_INWORLD_BASE_URL = "https://api.inworld.ai";
55
export const DEFAULT_INWORLD_VOICE_ID = "Sarah";
66
export const DEFAULT_INWORLD_MODEL_ID = "inworld-tts-1.5-max";
77

extensions/kimi-coding/provider-catalog.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-shared";
22

3-
export const KIMI_BASE_URL = "https://api.kimi.com/coding/";
3+
const KIMI_BASE_URL = "https://api.kimi.com/coding/";
44
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";
77
const KIMI_CODING_DEFAULT_CONTEXT_WINDOW = 262144;
88
const KIMI_CODING_DEFAULT_MAX_TOKENS = 32768;
99
const KIMI_CODING_DEFAULT_COST = {

extensions/moonshot/media-understanding-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
} from "openclaw/plugin-sdk/provider-http";
1717
import { MOONSHOT_DEFAULT_MODEL_ID } from "./provider-catalog.js";
1818

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";
2020
const DEFAULT_MOONSHOT_VIDEO_MODEL = MOONSHOT_DEFAULT_MODEL_ID;
2121
const DEFAULT_MOONSHOT_VIDEO_PROMPT = "Describe the video.";
2222

extensions/openai/media-understanding-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from "openclaw/plugin-sdk/media-understanding";
88
import { OPENAI_DEFAULT_AUDIO_TRANSCRIPTION_MODEL } from "./default-models.js";
99

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";
1111

1212
export async function transcribeOpenAiAudio(params: AudioTranscriptionRequest) {
1313
return await transcribeOpenAiCompatibleAudio({

extensions/opencode-go/provider-catalog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { normalizeModelCompat } from "openclaw/plugin-sdk/provider-model-shared"
44

55
const PROVIDER_ID = "opencode-go";
66

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";
99

1010
const OPENCODE_GO_SUPPLEMENTAL_MODELS = (
1111
[

extensions/stepfun/provider-catalog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const STEPFUN_STANDARD_INTL_BASE_URL = "https://api.stepfun.ai/v1";
1010
export const STEPFUN_PLAN_CN_BASE_URL = "https://api.stepfun.com/step_plan/v1";
1111
export const STEPFUN_PLAN_INTL_BASE_URL = "https://api.stepfun.ai/step_plan/v1";
1212

13-
export const STEPFUN_DEFAULT_MODEL_ID = "step-3.5-flash";
13+
const STEPFUN_DEFAULT_MODEL_ID = "step-3.5-flash";
1414
export const STEPFUN_FLASH_2603_MODEL_ID = "step-3.5-flash-2603";
1515
export const STEPFUN_DEFAULT_MODEL_REF = `${STEPFUN_PROVIDER_ID}/${STEPFUN_DEFAULT_MODEL_ID}`;
1616
export const STEPFUN_PLAN_DEFAULT_MODEL_REF = `${STEPFUN_PLAN_PROVIDER_ID}/${STEPFUN_DEFAULT_MODEL_ID}`;

0 commit comments

Comments
 (0)