mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-06 23:44:36 +00:00
parent
6757561546
commit
ca09b2b1a8
3 changed files with 42 additions and 2 deletions
|
|
@ -596,10 +596,10 @@ export async function findInitialModel(options: {
|
|||
};
|
||||
}
|
||||
|
||||
// 3. Try saved default from settings
|
||||
// 3. Try saved default from settings if auth is configured.
|
||||
if (defaultProvider && defaultModelId) {
|
||||
const found = modelRegistry.find(defaultProvider, defaultModelId);
|
||||
if (found) {
|
||||
if (found && modelRegistry.hasConfiguredAuth(found)) {
|
||||
model = found;
|
||||
if (defaultThinkingLevel) {
|
||||
thinkingLevel = defaultThinkingLevel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue