Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def generate(input_text):
|
|
| 48 |
return "Error: GEMINI_API_KEY is not set.", ""
|
| 49 |
|
| 50 |
client = genai.Client(api_key=GEMINI_API_KEY)
|
| 51 |
-
model_id = "gemini-2.0-flash-
|
| 52 |
|
| 53 |
# Create a chat session to handle the tool-use loop
|
| 54 |
chat = client.chats.create(
|
|
|
|
| 48 |
return "Error: GEMINI_API_KEY is not set.", ""
|
| 49 |
|
| 50 |
client = genai.Client(api_key=GEMINI_API_KEY)
|
| 51 |
+
model_id = "gemini-2.0-flash-latest" # Recommended for tool use
|
| 52 |
|
| 53 |
# Create a chat session to handle the tool-use loop
|
| 54 |
chat = client.chats.create(
|