Skip to content

Commit

Permalink
chore: Remove commented out code following 15446 (#18047)
Browse files Browse the repository at this point in the history
Closes #ISSUE

Release Notes:

- N/A
  • Loading branch information
osiewicz authored Sep 19, 2024
1 parent b43b800 commit 43e005e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions crates/ollama/src/ollama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,17 +343,7 @@ pub async fn preload_model(client: Arc<dyn HttpClient>, api_url: &str, model: &s
}),
)?))?;

let mut response = match client.send(request).await {
Ok(response) => response,
Err(error) => {
// Be ok with a timeout during preload of the model
// if err.is_timeout() {
// return Ok(());
// } else {
return Err(error);
//}
}
};
let mut response = client.send(request).await?;

if response.status().is_success() {
Ok(())
Expand Down

0 comments on commit 43e005e

Please sign in to comment.