Ollama improvements (#12921)

Attempt to load the model early on when the user has switched the model.

This is a follow up to #12902

Release Notes:

- N/A
This commit is contained in:
Kyle Kelley 2024-06-12 08:10:51 -07:00 committed by GitHub
parent 113546f766
commit bee3441c78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 67 additions and 7 deletions

View file

@ -62,6 +62,7 @@ pub fn init(client: Arc<Client>, cx: &mut AppContext) {
client.http_client(),
low_speed_timeout_in_seconds.map(Duration::from_secs),
settings_version,
cx,
)),
};
cx.set_global(provider);
@ -114,6 +115,7 @@ pub fn init(client: Arc<Client>, cx: &mut AppContext) {
api_url.clone(),
low_speed_timeout_in_seconds.map(Duration::from_secs),
settings_version,
cx,
);
}
@ -174,6 +176,7 @@ pub fn init(client: Arc<Client>, cx: &mut AppContext) {
client.http_client(),
low_speed_timeout_in_seconds.map(Duration::from_secs),
settings_version,
cx,
));
}
}