mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 16:41:23 +00:00
fix: align embedded session setup with sdk
This commit is contained in:
@@ -17,6 +17,11 @@ const modelRegistryState = {
|
||||
models: [] as Array<Record<string, unknown>>,
|
||||
available: [] as Array<Record<string, unknown>>,
|
||||
};
|
||||
const discoverAuthStorage = vi.fn().mockReturnValue({});
|
||||
const discoverModels = vi.fn().mockReturnValue({
|
||||
getAll: () => modelRegistryState.models,
|
||||
getAvailable: () => modelRegistryState.available,
|
||||
});
|
||||
|
||||
vi.mock("../config/config.js", () => ({
|
||||
CONFIG_PATH: "/tmp/openclaw.json",
|
||||
|
||||
Reference in New Issue
Block a user