Tests: fix models list e2e registry mock
This commit is contained in:
parent
e21f512e5e
commit
298f9a4f60
@ -87,6 +87,15 @@ vi.mock("../agents/pi-embedded-runner/model.js", () => ({
|
||||
resolveModel: () => {
|
||||
throw new Error("resolveModel should not be called from models.list tests");
|
||||
},
|
||||
resolveModelWithRegistry: ({
|
||||
provider,
|
||||
modelId,
|
||||
modelRegistry,
|
||||
}: {
|
||||
provider: string;
|
||||
modelId: string;
|
||||
modelRegistry: { find: (provider: string, modelId: string) => unknown };
|
||||
}) => modelRegistry.find(provider, modelId),
|
||||
}));
|
||||
|
||||
function makeRuntime() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user