Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ async def generate(input_text):
|
|
| 29 |
return
|
| 30 |
|
| 31 |
# Initialize the standard client
|
| 32 |
-
client = genai.Client(api_key=GEMINI_API_KEY)
|
| 33 |
model_id = "gemini-2.0-flash-exp" # Ensure this is a valid model ID for your tier
|
| 34 |
|
| 35 |
train_tool = types.Tool(
|
|
|
|
| 29 |
return
|
| 30 |
|
| 31 |
# Initialize the standard client
|
| 32 |
+
client = genai.Client(api_key=GEMINI_API_KEY, http_options={'api_version': 'v1alpha'})
|
| 33 |
model_id = "gemini-2.0-flash-exp" # Ensure this is a valid model ID for your tier
|
| 34 |
|
| 35 |
train_tool = types.Tool(
|