Spaces:
Running
Running
Update agents.py
Browse files
agents.py
CHANGED
@@ -9,7 +9,6 @@ from openai import AsyncOpenAI, APIError
|
|
9 |
# --- Google Gemini ---
|
10 |
from google import genai
|
11 |
from google.genai import types
|
12 |
-
from google.api_core import exceptions as google_exceptions
|
13 |
|
14 |
# --- Mistral AI ---
|
15 |
from mistralai.async_client import MistralAsyncClient
|
@@ -276,9 +275,6 @@ class GeminiAgent(LLMAgentBase):
|
|
276 |
])
|
277 |
return {"error": f"Gemini did not return a function call. Response: {text_content[:100]}..."}
|
278 |
|
279 |
-
except google_exceptions.GoogleAPIError as e:
|
280 |
-
print(f"Google API error: {e}")
|
281 |
-
return {"error": f"Google API error: {str(e)}"}
|
282 |
except Exception as e:
|
283 |
print(f"Unexpected error during Gemini processing: {e}")
|
284 |
import traceback
|
|
|
9 |
# --- Google Gemini ---
|
10 |
from google import genai
|
11 |
from google.genai import types
|
|
|
12 |
|
13 |
# --- Mistral AI ---
|
14 |
from mistralai.async_client import MistralAsyncClient
|
|
|
275 |
])
|
276 |
return {"error": f"Gemini did not return a function call. Response: {text_content[:100]}..."}
|
277 |
|
|
|
|
|
|
|
278 |
except Exception as e:
|
279 |
print(f"Unexpected error during Gemini processing: {e}")
|
280 |
import traceback
|