Skip to content

Commit

Permalink
rm extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Nov 8, 2024
1 parent ad56357 commit a8eb059
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/api_interface/gem_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,6 @@ impl GeminiExecutor {
)));
}

// check status
if let Err(e) = response.error_for_status_ref() {
return Err(OllamaError::from(format!(
"Gemini API request failed with status {}: {:?}",
response.status(),
e.source()
)));
}

let response_body: Value = response.json().await.map_err(|e| {
OllamaError::from(format!("Failed to parse Gemini API response: {:?}", e))
})?;
Expand Down

0 comments on commit a8eb059

Please sign in to comment.