fix: set default model after auth choice
This commit is contained in:
@@ -366,6 +366,8 @@ async function promptAuthConfig(
|
||||
setDefaultModel: true,
|
||||
});
|
||||
next = applied.config;
|
||||
// Auth choice already set a sensible default model; skip the model picker.
|
||||
return next;
|
||||
}
|
||||
|
||||
const modelSelection = await promptDefaultModel({
|
||||
|
||||
@@ -97,7 +97,7 @@ export async function promptDefaultModel(
|
||||
const resolvedKey = modelKey(resolved.provider, resolved.model);
|
||||
const configuredKey = configuredRaw ? resolvedKey : "";
|
||||
|
||||
const catalog = await loadModelCatalog({ config: cfg });
|
||||
const catalog = await loadModelCatalog({ config: cfg, useCache: false });
|
||||
if (catalog.length === 0) {
|
||||
return promptManualModel({
|
||||
prompter: params.prompter,
|
||||
|
||||
Reference in New Issue
Block a user