Revert "ai: Auto select user model when there's no default" (#36932)
Reverts zed-industries/zed#36722 Release Notes: - N/A
This commit is contained in:
parent
2c64b05ea4
commit
858ab9cc23
9 changed files with 122 additions and 184 deletions
|
@ -4466,7 +4466,7 @@ fn current_language_model(cx: &Context<'_, GitPanel>) -> Option<Arc<dyn Language
|
|||
is_enabled
|
||||
.then(|| {
|
||||
let ConfiguredModel { provider, model } =
|
||||
LanguageModelRegistry::read_global(cx).commit_message_model(cx)?;
|
||||
LanguageModelRegistry::read_global(cx).commit_message_model()?;
|
||||
|
||||
provider.is_authenticated(cx).then(|| model)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue