refactor(openai): import base URL helpers directly

This commit is contained in:
Ayaan Zaidi
2026-04-14 21:50:09 +05:30
parent 8fa63ac380
commit daabbce9a0
3 changed files with 3 additions and 11 deletions

View File

@@ -19,6 +19,7 @@ import {
} from "openclaw/plugin-sdk/provider-model-shared";
import { fetchCodexUsage } from "openclaw/plugin-sdk/provider-usage";
import { normalizeLowercaseStringOrEmpty, readStringValue } from "openclaw/plugin-sdk/text-runtime";
import { isOpenAIApiBaseUrl, isOpenAICodexBaseUrl } from "./base-url.js";
import { OPENAI_CODEX_DEFAULT_MODEL } from "./default-models.js";
import { resolveCodexAuthIdentity } from "./openai-codex-auth-identity.js";
import { buildOpenAICodexProvider } from "./openai-codex-catalog.js";
@@ -28,8 +29,6 @@ import {
buildOpenAISyntheticCatalogEntry,
cloneFirstTemplateModel,
findCatalogTemplate,
isOpenAIApiBaseUrl,
isOpenAICodexBaseUrl,
matchesExactOrPrefix,
} from "./shared.js";

View File

@@ -10,13 +10,13 @@ import {
type ProviderPlugin,
} from "openclaw/plugin-sdk/provider-model-shared";
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";
import { isOpenAIApiBaseUrl } from "./base-url.js";
import { applyOpenAIConfig, OPENAI_DEFAULT_MODEL } from "./default-models.js";
import {
buildOpenAIResponsesProviderHooks,
buildOpenAISyntheticCatalogEntry,
cloneFirstTemplateModel,
findCatalogTemplate,
isOpenAIApiBaseUrl,
matchesExactOrPrefix,
} from "./shared.js";

View File

@@ -7,7 +7,6 @@ import {
} from "openclaw/plugin-sdk/provider-model-shared";
import { OPENAI_RESPONSES_STREAM_HOOKS } from "openclaw/plugin-sdk/provider-stream-family";
import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
import { isOpenAIApiBaseUrl, isOpenAICodexBaseUrl } from "./base-url.js";
import { buildOpenAIReplayPolicy } from "./replay-policy.js";
import {
resolveOpenAITransportTurnState,
@@ -121,10 +120,4 @@ export function buildOpenAISyntheticCatalogEntry(
};
}
export {
cloneFirstTemplateModel,
findCatalogTemplate,
isOpenAIApiBaseUrl,
isOpenAICodexBaseUrl,
matchesExactOrPrefix,
};
export { cloneFirstTemplateModel, findCatalogTemplate, matchesExactOrPrefix };