Update app_2.py
Browse files
app_2.py
CHANGED
|
@@ -10,7 +10,11 @@ client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
|
|
| 10 |
MODEL = "gemini-3.1-flash-lite-preview"
|
| 11 |
|
| 12 |
# Tools + Config (einmalig)
|
| 13 |
-
tools = [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
generate_content_config = types.GenerateContentConfig(
|
| 15 |
thinking_config=types.ThinkingConfig(thinking_level="MINIMAL"),
|
| 16 |
tools=tools,
|
|
|
|
| 10 |
MODEL = "gemini-3.1-flash-lite-preview"
|
| 11 |
|
| 12 |
# Tools + Config (einmalig)
|
| 13 |
+
tools = [
|
| 14 |
+
types.Tool(url_context=types.UrlContext()),
|
| 15 |
+
types.Tool(googleSearch=types.GoogleSearch(
|
| 16 |
+
)),
|
| 17 |
+
]
|
| 18 |
generate_content_config = types.GenerateContentConfig(
|
| 19 |
thinking_config=types.ThinkingConfig(thinking_level="MINIMAL"),
|
| 20 |
tools=tools,
|