openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
14 lines (13 loc) • 746 B
JavaScript
//#region extensions/xai/model-id.ts
function normalizeXaiModelId(id) {
if (id === "grok-code-fast-1" || id === "grok-code-fast" || id === "grok-code-fast-1-0825") return "grok-build-0.1";
if (id === "grok-4-fast-reasoning") return "grok-4-fast";
if (id === "grok-4-1-fast-reasoning") return "grok-4-1-fast";
if (id === "grok-4.20-experimental-beta-0304-reasoning") return "grok-4.20-beta-latest-reasoning";
if (id === "grok-4.20-experimental-beta-0304-non-reasoning") return "grok-4.20-beta-latest-non-reasoning";
if (id === "grok-4.20-reasoning") return "grok-4.20-beta-latest-reasoning";
if (id === "grok-4.20-non-reasoning") return "grok-4.20-beta-latest-non-reasoning";
return id;
}
//#endregion
export { normalizeXaiModelId as t };