mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-15 03:24:24 +01: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