refactor: remove stale provider helpers

This commit is contained in:
Peter Steinberger
2026-05-01 11:09:47 +01:00
parent 61db2e06d5
commit bf7ac8d8c4
10 changed files with 0 additions and 41 deletions

View File

@@ -34,10 +34,6 @@ const arceeOpenRouterPresetAppliers = createModelCatalogPresetAppliers({
}),
});
export function applyArceeProviderConfig(cfg: OpenClawConfig): OpenClawConfig {
return arceePresetAppliers.applyProviderConfig(cfg);
}
export function applyArceeConfig(cfg: OpenClawConfig): OpenClawConfig {
return arceePresetAppliers.applyConfig(cfg);
}

View File

@@ -19,10 +19,6 @@ export function normalizeArceeOpenRouterBaseUrl(baseUrl: string | undefined): st
return undefined;
}
export function isArceeOpenRouterBaseUrl(baseUrl: string | undefined): boolean {
return normalizeArceeOpenRouterBaseUrl(baseUrl) === OPENROUTER_BASE_URL;
}
export function toArceeOpenRouterModelId(modelId: string): string {
const normalized = modelId.trim();
if (!normalized || normalized.startsWith("arcee/")) {

View File

@@ -15,8 +15,6 @@ const BYTEPLUS_CODING_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
export const BYTEPLUS_BASE_URL = BYTEPLUS_MANIFEST_PROVIDER.baseUrl;
export const BYTEPLUS_CODING_BASE_URL = BYTEPLUS_CODING_MANIFEST_PROVIDER.baseUrl;
export const BYTEPLUS_DEFAULT_MODEL_ID = "seed-1-8-251228";
export const BYTEPLUS_CODING_DEFAULT_MODEL_ID = "ark-code-latest";
export const BYTEPLUS_DEFAULT_MODEL_REF = `byteplus/${BYTEPLUS_DEFAULT_MODEL_ID}`;
export const BYTEPLUS_DEFAULT_COST = {
input: 0.0001,

View File

@@ -21,10 +21,6 @@ const cerebrasPresetAppliers = createModelCatalogPresetAppliers({
}),
});
export function applyCerebrasProviderConfig(cfg: OpenClawConfig): OpenClawConfig {
return cerebrasPresetAppliers.applyProviderConfig(cfg);
}
export function applyCerebrasConfig(cfg: OpenClawConfig): OpenClawConfig {
return cerebrasPresetAppliers.applyConfig(cfg);
}

View File

@@ -1,18 +1,11 @@
import {
GPT5_BEHAVIOR_CONTRACT,
GPT5_FRIENDLY_PROMPT_OVERLAY,
isGpt5ModelId,
renderGpt5PromptOverlay,
resolveGpt5SystemPromptContribution,
} from "openclaw/plugin-sdk/provider-model-shared";
export const CODEX_FRIENDLY_PROMPT_OVERLAY = GPT5_FRIENDLY_PROMPT_OVERLAY;
export const CODEX_GPT5_BEHAVIOR_CONTRACT = GPT5_BEHAVIOR_CONTRACT;
export function shouldApplyCodexPromptOverlay(params: { modelId?: string }): boolean {
return isGpt5ModelId(params.modelId);
}
export function resolveCodexSystemPromptContribution(
params: Parameters<typeof resolveGpt5SystemPromptContribution>[0],
) {

View File

@@ -25,10 +25,6 @@ const fireworksPresetAppliers = createDefaultModelsPresetAppliers({
},
});
export function applyFireworksProviderConfig(cfg: OpenClawConfig): OpenClawConfig {
return fireworksPresetAppliers.applyProviderConfig(cfg);
}
export function applyFireworksConfig(cfg: OpenClawConfig): OpenClawConfig {
return fireworksPresetAppliers.applyConfig(cfg);
}

View File

@@ -21,10 +21,6 @@ const huggingfacePresetAppliers = createModelCatalogPresetAppliers({
}),
});
export function applyHuggingfaceProviderConfig(cfg: OpenClawConfig): OpenClawConfig {
return huggingfacePresetAppliers.applyProviderConfig(cfg);
}
export function applyHuggingfaceConfig(cfg: OpenClawConfig): OpenClawConfig {
return huggingfacePresetAppliers.applyConfig(cfg);
}

View File

@@ -3,7 +3,6 @@ import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-sha
export const KIMI_BASE_URL = "https://api.kimi.com/coding/";
const KIMI_CODING_USER_AGENT = "claude-code/0.1.0";
export const KIMI_DEFAULT_MODEL_ID = "kimi-code";
export const KIMI_UPSTREAM_MODEL_ID = "kimi-for-coding";
export const KIMI_LEGACY_MODEL_ID = "k2p5";
const KIMI_CODING_DEFAULT_CONTEXT_WINDOW = 262144;
const KIMI_CODING_DEFAULT_MAX_TOKENS = 32768;
@@ -46,5 +45,3 @@ export function buildKimiCodingProvider(): ModelProviderConfig {
export const KIMI_CODING_BASE_URL = KIMI_BASE_URL;
export const KIMI_CODING_DEFAULT_MODEL_ID = KIMI_DEFAULT_MODEL_ID;
export const KIMI_CODING_LEGACY_MODEL_ID = KIMI_LEGACY_MODEL_ID;
export const buildKimiProvider = buildKimiCodingProvider;

View File

@@ -6,7 +6,6 @@ const MISTRAL_MANIFEST_CATALOG = manifest.modelCatalog.providers.mistral;
export const MISTRAL_BASE_URL = MISTRAL_MANIFEST_CATALOG.baseUrl;
export const MISTRAL_DEFAULT_MODEL_ID = "mistral-large-latest";
export const MISTRAL_DEFAULT_MODEL_REF = `mistral/${MISTRAL_DEFAULT_MODEL_ID}`;
function requireMistralManifestModel(id: string): (typeof MISTRAL_MANIFEST_CATALOG.models)[number] {
const model = MISTRAL_MANIFEST_CATALOG.models.find((entry) => entry.id === id);

View File

@@ -29,14 +29,6 @@ const moonshotPresetAppliers = createDefaultModelPresetAppliers<[string]>({
},
});
export function applyMoonshotProviderConfig(cfg: OpenClawConfig): OpenClawConfig {
return moonshotPresetAppliers.applyProviderConfig(cfg, MOONSHOT_BASE_URL);
}
export function applyMoonshotProviderConfigCn(cfg: OpenClawConfig): OpenClawConfig {
return moonshotPresetAppliers.applyProviderConfig(cfg, MOONSHOT_CN_BASE_URL);
}
export function applyMoonshotConfig(cfg: OpenClawConfig): OpenClawConfig {
return moonshotPresetAppliers.applyConfig(cfg, MOONSHOT_BASE_URL);
}