mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-27 20:45:49 +00:00
fix: restore model config compatibility exports
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user