mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 22:41:38 +00:00
* fix(xai): honor provider alias runtime policy * fix(xai): preserve alias billed tool defaults
9 lines
388 B
TypeScript
9 lines
388 B
TypeScript
import { normalizeProviderId } from "openclaw/plugin-sdk/provider-model-shared";
|
|
|
|
const XAI_PROVIDER_IDS = new Set(["xai", "x-ai"]);
|
|
|
|
// Provider dispatch preserves the selected alias. Keep all xAI-owned runtime policy symmetric.
|
|
export function isXaiProviderId(provider: unknown): boolean {
|
|
return typeof provider === "string" && XAI_PROVIDER_IDS.has(normalizeProviderId(provider));
|
|
}
|