Docfile commited on
Commit
d99791f
·
verified ·
1 Parent(s): 1715899

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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=types.GenerateContentConfig(
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.")