jdospina commited on
Commit
0da0a5e
·
verified ·
1 Parent(s): 022dee5

Upload agent

Browse files
Files changed (3) hide show
  1. agent.json +17 -15
  2. app.py +6 -4
  3. requirements.txt +1 -1
agent.json CHANGED
@@ -8,12 +8,14 @@
8
  "final_answer"
9
  ],
10
  "model": {
11
- "class": "HfApiModel",
12
  "data": {
13
- "last_input_token_count": null,
14
- "last_output_token_count": null,
15
- "model_id": "Qwen/Qwen2.5-Coder-32B-Instruct",
16
- "provider": null
 
 
17
  }
18
  },
19
  "managed_agents": {},
@@ -43,22 +45,22 @@
43
  "name": null,
44
  "description": null,
45
  "requirements": [
 
46
  "markdownify",
47
  "requests",
48
- "smolagents",
49
- "duckduckgo_search"
50
  ],
51
  "authorized_imports": [
52
- "unicodedata",
53
- "stat",
54
  "re",
55
- "time",
56
- "itertools",
57
- "collections",
58
  "random",
 
 
 
 
 
59
  "datetime",
60
- "queue",
61
- "statistics",
62
- "math"
63
  ]
64
  }
 
8
  "final_answer"
9
  ],
10
  "model": {
11
+ "class": "LiteLLMModel",
12
  "data": {
13
+ "temperature": 0.2,
14
+ "max_tokens": 500,
15
+ "last_input_token_count": 14218,
16
+ "last_output_token_count": 211,
17
+ "model_id": "anthropic/claude-3-haiku-20240307",
18
+ "api_base": null
19
  }
20
  },
21
  "managed_agents": {},
 
45
  "name": null,
46
  "description": null,
47
  "requirements": [
48
+ "duckduckgo_search",
49
  "markdownify",
50
  "requests",
51
+ "smolagents"
 
52
  ],
53
  "authorized_imports": [
54
+ "statistics",
 
55
  "re",
 
 
 
56
  "random",
57
+ "stat",
58
+ "collections",
59
+ "time",
60
+ "unicodedata",
61
+ "math",
62
  "datetime",
63
+ "itertools",
64
+ "queue"
 
65
  ]
66
  }
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import yaml
2
  import os
3
- from smolagents import GradioUI, CodeAgent, HfApiModel
4
 
5
  # Get current directory path
6
  CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
@@ -14,9 +14,11 @@ from tools.final_answer import FinalAnswerTool as FinalAnswer
14
 
15
 
16
 
17
- model = HfApiModel(
18
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
19
- provider=None,
 
 
20
  )
21
 
22
  web_search = WebSearch()
 
1
  import yaml
2
  import os
3
+ from smolagents import GradioUI, CodeAgent, LiteLLMModel
4
 
5
  # Get current directory path
6
  CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
 
14
 
15
 
16
 
17
+ model = LiteLLMModel(
18
+ temperature=0.2,
19
+ max_tokens=500,
20
+ model_id='anthropic/claude-3-haiku-20240307',
21
+ api_base=None,
22
  )
23
 
24
  web_search = WebSearch()
requirements.txt CHANGED
@@ -1,4 +1,4 @@
 
1
  markdownify
2
  requests
3
  smolagents
4
- duckduckgo_search
 
1
+ duckduckgo_search
2
  markdownify
3
  requests
4
  smolagents