Files
openclaw/extensions/xai/model-id.ts
Peter Steinberger db12cb7023 fix(xai): align current model catalog and tools (#103260)
* fix(xai): align current model catalog and tools

* chore(xai): defer release note to release closeout

* docs: refresh xai documentation map
2026-07-10 03:36:14 +01:00

23 lines
582 B
TypeScript

// Xai plugin module implements model id behavior.
export function normalizeXaiModelId(id: string): string {
if (id === "grok-4.3-latest") {
return "grok-4.3";
}
if (id === "grok-4.5-latest") {
return "grok-4.5";
}
if (id === "grok-build-latest") {
return "grok-4.5";
}
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";
}
return id;
}