yetessam commited on
Commit
be94a9b
·
verified ·
1 Parent(s): 9d9cae4

Switching to LiteLLM

Browse files
Files changed (1) hide show
  1. app.py +14 -5
app.py CHANGED
@@ -35,12 +35,21 @@ def get_current_time_in_timezone(timezone: str) -> str:
35
 
36
 
37
  final_answer = FinalAnswerTool()
38
- model = HfApiModel(
39
- max_tokens=2096,
40
- temperature=0.5,
41
- model_id='https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud',
 
 
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