alekn commited on
Commit
39cd766
·
verified ·
1 Parent(s): 15fd027

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +8 -2
agent.py CHANGED
@@ -1,13 +1,19 @@
1
  from tools import all_tools
2
  from dotenv import load_dotenv
3
- from smolagents import InferenceClientModel, CodeAgent, PromptTemplates
4
  load_dotenv()
5
-
6
  model = InferenceClientModel(
7
  max_tokens=2096,
8
  temperature=0.0,
9
  model_id='Qwen/Qwen3-235B-A22B'
10
  )
 
 
 
 
 
 
11
 
12
  # Loads system prompt from the file
13
  with open("system_prompt.txt", "r", encoding="utf-8") as f:
 
1
  from tools import all_tools
2
  from dotenv import load_dotenv
3
+ from smolagents import InferenceClientModel, CodeAgent, PromptTemplates, LiteLLMModel
4
  load_dotenv()
5
+ '''
6
  model = InferenceClientModel(
7
  max_tokens=2096,
8
  temperature=0.0,
9
  model_id='Qwen/Qwen3-235B-A22B'
10
  )
11
+ '''
12
+ model = LiteLLMModel(
13
+ model_id="gemini/gemini-2.0-flash",
14
+ api_key=os.getenv("GEMINI_API_KEY"),
15
+ max_tokens=8192
16
+ )
17
 
18
  # Loads system prompt from the file
19
  with open("system_prompt.txt", "r", encoding="utf-8") as f: