mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 13:11:40 +00:00
* fix(plugins): enforce activation before shipped imports * fix(plugins): remove more ambient bundled loads * fix(plugins): tighten scoped loader matching * fix(plugins): remove channel-id scoped loader matches * refactor(plugin-sdk): relocate ambient provider helpers * fix(plugin-sdk): preserve unicode ADC credential paths * fix(plugins): restore safe setup fallback
22 lines
631 B
TypeScript
22 lines
631 B
TypeScript
export function normalizeXaiModelId(id: string): string {
|
|
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;
|
|
}
|