mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-09 22:52:52 +00:00
* fix(models): normalize provider runtime selection * fix(models): reverse codex-only runtime migration * fix(models): default runtime selection to pi * fix(status): label model runtime clearly * fix(status): align pi runtime label * fix(plugins): align tool result middleware runtime naming * fix(models): validate runtime overrides
15 lines
513 B
TypeScript
15 lines
513 B
TypeScript
import { isLegacyRuntimeModelProvider } from "./model-runtime-aliases.js";
|
|
import { normalizeProviderId } from "./provider-id.js";
|
|
|
|
export function isModelPickerVisibleProvider(provider: string): boolean {
|
|
return !isLegacyRuntimeModelProvider(normalizeProviderId(provider));
|
|
}
|
|
|
|
export function isModelPickerVisibleModelRef(ref: string): boolean {
|
|
const separatorIndex = ref.indexOf("/");
|
|
if (separatorIndex <= 0) {
|
|
return true;
|
|
}
|
|
return isModelPickerVisibleProvider(ref.slice(0, separatorIndex));
|
|
}
|