mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
fix: expose not support tool call error (#2231)
This commit is contained in:
@@ -149,7 +149,7 @@ pub async fn handle_response_google_compat(response: Response) -> Result<Value,
|
||||
Err(ProviderError::Authentication(format!("Authentication failed. Please ensure your API keys are valid and have the required permissions. \
|
||||
Status: {}. Response: {:?}", final_status, payload )))
|
||||
}
|
||||
StatusCode::BAD_REQUEST => {
|
||||
StatusCode::BAD_REQUEST | StatusCode::NOT_FOUND => {
|
||||
let mut error_msg = "Unknown error".to_string();
|
||||
if let Some(payload) = &payload {
|
||||
if let Some(error) = payload.get("error") {
|
||||
|
||||
Reference in New Issue
Block a user