Docfile commited on
Commit
fee392b
·
verified ·
1 Parent(s): a4af8da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
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