Update app.py
Browse files
app.py
CHANGED
|
@@ -125,9 +125,7 @@ def perform_web_search_with_gemini(query, client, model_id):
|
|
| 125 |
response = client.models.generate_content(
|
| 126 |
model=model_id,
|
| 127 |
contents=[{"role": "user", "parts": [{"text": query}]}],
|
| 128 |
-
config=
|
| 129 |
-
tools=[{"google_search": {}}]
|
| 130 |
-
)
|
| 131 |
)
|
| 132 |
|
| 133 |
print("--- LOG WEBSEARCH: Résultats de recherche Google obtenus.")
|
|
|
|
| 125 |
response = client.models.generate_content(
|
| 126 |
model=model_id,
|
| 127 |
contents=[{"role": "user", "parts": [{"text": query}]}],
|
| 128 |
+
config={"tools": [{"google_search": {}}]},
|
|
|
|
|
|
|
| 129 |
)
|
| 130 |
|
| 131 |
print("--- LOG WEBSEARCH: Résultats de recherche Google obtenus.")
|