fix: set default model after auth choice
This commit is contained in:
parent
b8f8e7f4dd
commit
d0ba56c5ac
@ -78,6 +78,7 @@
|
|||||||
- Auto-reply: allow fuzzy `/model` matches (e.g. `/model kimi` or `/model moonshot/kimi`) when unambiguous.
|
- Auto-reply: allow fuzzy `/model` matches (e.g. `/model kimi` or `/model moonshot/kimi`) when unambiguous.
|
||||||
- Auto-reply: ignore inline `/status` directives unless the message is directive-only.
|
- Auto-reply: ignore inline `/status` directives unless the message is directive-only.
|
||||||
- CLI/Configure: enter the selected section immediately, then return to the section picker.
|
- CLI/Configure: enter the selected section immediately, then return to the section picker.
|
||||||
|
- CLI/Configure: apply the chosen auth model as default (skip the extra picker) and refresh the model catalog for new providers.
|
||||||
- Auto-reply: align `/think` default display with model reasoning defaults. (#751) — thanks @gabriel-trigo.
|
- Auto-reply: align `/think` default display with model reasoning defaults. (#751) — thanks @gabriel-trigo.
|
||||||
- Auto-reply: flush block reply buffers on tool boundaries. (#750) — thanks @sebslight.
|
- Auto-reply: flush block reply buffers on tool boundaries. (#750) — thanks @sebslight.
|
||||||
- Auto-reply: allow sender fallback for command authorization when `SenderId` is empty (WhatsApp self-chat). (#755) — thanks @juanpablodlc.
|
- Auto-reply: allow sender fallback for command authorization when `SenderId` is empty (WhatsApp self-chat). (#755) — thanks @juanpablodlc.
|
||||||
|
|||||||
@ -366,6 +366,8 @@ async function promptAuthConfig(
|
|||||||
setDefaultModel: true,
|
setDefaultModel: true,
|
||||||
});
|
});
|
||||||
next = applied.config;
|
next = applied.config;
|
||||||
|
// Auth choice already set a sensible default model; skip the model picker.
|
||||||
|
return next;
|
||||||
}
|
}
|
||||||
|
|
||||||
const modelSelection = await promptDefaultModel({
|
const modelSelection = await promptDefaultModel({
|
||||||
|
|||||||
@ -97,7 +97,7 @@ export async function promptDefaultModel(
|
|||||||
const resolvedKey = modelKey(resolved.provider, resolved.model);
|
const resolvedKey = modelKey(resolved.provider, resolved.model);
|
||||||
const configuredKey = configuredRaw ? resolvedKey : "";
|
const configuredKey = configuredRaw ? resolvedKey : "";
|
||||||
|
|
||||||
const catalog = await loadModelCatalog({ config: cfg });
|
const catalog = await loadModelCatalog({ config: cfg, useCache: false });
|
||||||
if (catalog.length === 0) {
|
if (catalog.length === 0) {
|
||||||
return promptManualModel({
|
return promptManualModel({
|
||||||
prompter: params.prompter,
|
prompter: params.prompter,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user