fix(coding-agent): refresh model catalogs in picker

This commit is contained in:
Mario Zechner
2026-07-15 12:35:29 +02:00
parent ff28097a36
commit fab309e955
7 changed files with 126 additions and 8 deletions
@@ -11,11 +11,11 @@ function wrap(runtime: ModelRuntime): ModelRegistry {
}
export async function createModelRegistry(credentials: CredentialStore, modelsPath?: string): Promise<ModelRegistry> {
return wrap(await ModelRuntime.create({ credentials, modelsPath }));
return wrap(await ModelRuntime.create({ credentials, modelsPath, allowModelNetwork: false }));
}
export async function createInMemoryModelRegistry(credentials: CredentialStore): Promise<ModelRegistry> {
return wrap(await ModelRuntime.create({ credentials, modelsPath: null }));
return wrap(await ModelRuntime.create({ credentials, modelsPath: null, allowModelNetwork: false }));
}
export function getModelRuntime(modelRegistry: ModelRegistry): ModelRuntime {