Update app.py
Browse files
app.py
CHANGED
|
@@ -380,11 +380,7 @@ def chat_api():
|
|
| 380 |
system_instruction=SYSTEM_INSTRUCTION,
|
| 381 |
safety_settings=SAFETY_SETTINGS
|
| 382 |
)
|
| 383 |
-
|
| 384 |
-
# Ajouter la configuration de recherche web si demandée
|
| 385 |
-
if use_web_search:
|
| 386 |
-
generate_config.tools = [{"google_search": {}}]
|
| 387 |
-
"""
|
| 388 |
if use_web_search:
|
| 389 |
generate_config.tools = [types.Tool(google_search=types.GoogleSearchToolConfig())]
|
| 390 |
|
|
|
|
| 380 |
system_instruction=SYSTEM_INSTRUCTION,
|
| 381 |
safety_settings=SAFETY_SETTINGS
|
| 382 |
)
|
| 383 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 384 |
if use_web_search:
|
| 385 |
generate_config.tools = [types.Tool(google_search=types.GoogleSearchToolConfig())]
|
| 386 |
|