alekn commited on
Commit
5403288
·
verified ·
1 Parent(s): ee016ec

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +6 -8
agent.py CHANGED
@@ -1,15 +1,13 @@
1
  import os
2
  from tools import all_tools
3
  from dotenv import load_dotenv
4
- from smolagents import InferenceClientModel, CodeAgent, PromptTemplates, LiteLLMModel
 
 
5
  load_dotenv()
6
- '''
7
- model = InferenceClientModel(
8
- max_tokens=2096,
9
- temperature=0.0,
10
- model_id='Qwen/Qwen3-235B-A22B'
11
- )
12
- '''
13
  model = LiteLLMModel(
14
  model_id="openrouter/openai/gpt-4.1-mini",
15
  api_key=os.getenv("OPENROUTER_API_KEY"),
 
1
  import os
2
  from tools import all_tools
3
  from dotenv import load_dotenv
4
+ from smolagents import CodeAgent, PromptTemplates, LiteLLMModel
5
+ import logfire
6
+
7
  load_dotenv()
8
+
9
+ logfire.configure(token=os.getenv("LOGFIRE_API_KEY")
10
+
 
 
 
 
11
  model = LiteLLMModel(
12
  model_id="openrouter/openai/gpt-4.1-mini",
13
  api_key=os.getenv("OPENROUTER_API_KEY"),