Fix local model authentication

This commit is contained in:
Richard Feldman 2025-07-29 18:56:27 -04:00
parent 5830628568
commit f90459656f
No known key found for this signature in database

View file

@ -58,7 +58,8 @@ impl State {
}
fn is_authenticated(&self) -> bool {
matches!(self.status, ModelStatus::Loaded)
// Local models don't require authentication
true
}
fn authenticate(&mut self, cx: &mut Context<Self>) -> Task<Result<(), AuthenticateError>> {
@ -150,8 +151,9 @@ impl LanguageModelProvider for LocalLanguageModelProvider {
self.default_model(cx)
}
fn is_authenticated(&self, cx: &App) -> bool {
self.state.read(cx).is_authenticated()
fn is_authenticated(&self, _cx: &App) -> bool {
// Local models don't require authentication
true
}
fn authenticate(&self, cx: &mut App) -> Task<Result<(), AuthenticateError>> {