Remove unused load_model method from LanguageModelProvider (#32070)

Removes the load_model trait method and its implementations in Ollama
and LM Studio providers, along with associated preload_model functions
and unused imports.

Release Notes:

- N/A
This commit is contained in:
Ben Brandt 2025-06-04 16:07:01 +02:00 committed by GitHub
parent 04716a0e4a
commit 4304521655
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 4 additions and 84 deletions

View file

@ -374,7 +374,6 @@ pub trait LanguageModelProvider: 'static {
fn recommended_models(&self, _cx: &App) -> Vec<Arc<dyn LanguageModel>> {
Vec::new()
}
fn load_model(&self, _model: Arc<dyn LanguageModel>, _cx: &App) {}
fn is_authenticated(&self, cx: &App) -> bool;
fn authenticate(&self, cx: &mut App) -> Task<Result<(), AuthenticateError>>;
fn configuration_view(&self, window: &mut Window, cx: &mut App) -> AnyView;