fix: restore model config compatibility exports

This commit is contained in:
Peter Steinberger
2026-05-17 03:57:51 +01:00
parent bf80527ce1
commit 3bb0c560cb

View File

@@ -21,7 +21,10 @@ import { MODEL_CATALOG_STATE } from "./models-config-state.js";
import { readStoredModelsConfigRaw, writeStoredModelsConfigRaw } from "./models-config-store.js";
import { planOpenClawModelCatalog } from "./models-config.plan.js";
export { resetModelCatalogReadyCacheForTest } from "./models-config-state.js";
export {
resetModelCatalogReadyCacheForTest,
resetModelCatalogReadyCacheForTest as resetModelsJsonReadyCacheForTest,
} from "./models-config-state.js";
function stableStringify(value: unknown): string {
if (value === null || typeof value !== "object") {
@@ -264,3 +267,5 @@ export async function ensureOpenClawModelCatalog(
throw error;
}
}
export const ensureOpenClawModelsJson = ensureOpenClawModelCatalog;