Spaces:
Sleeping
Sleeping
Switching to LiteLLM
Browse files
app.py
CHANGED
|
@@ -35,12 +35,21 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 35 |
|
| 36 |
|
| 37 |
final_answer = FinalAnswerTool()
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
| 42 |
# it is possible that this model may be overloaded
|
| 43 |
-
custom_role_conversions=None,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
)
|
| 45 |
|
| 46 |
|
|
|
|
| 35 |
|
| 36 |
|
| 37 |
final_answer = FinalAnswerTool()
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
# model = HfApiModel(
|
| 41 |
+
# max_tokens=2096,
|
| 42 |
+
# temperature=0.5,
|
| 43 |
+
# model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
| 44 |
# it is possible that this model may be overloaded
|
| 45 |
+
# custom_role_conversions=None,
|
| 46 |
+
# )
|
| 47 |
+
|
| 48 |
+
model = LiteLLMModel(
|
| 49 |
+
model_id="gemini/gemini-2.0-flash-exp",
|
| 50 |
+
max_tokens=2096,
|
| 51 |
+
temperature=0.6,
|
| 52 |
+
api_key=os.getenv("LITELLM_API_KEY")
|
| 53 |
)
|
| 54 |
|
| 55 |
|