chezhian commited on
Commit
d3c02bc
·
verified ·
1 Parent(s): 3e71ee1

Changes HfApiModel to InferenceClientModel

Browse files
Files changed (1) hide show
  1. agent.py +2 -2
agent.py CHANGED
@@ -1,7 +1,7 @@
1
- from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
2
 
3
  # Initialize a model (use your preferred model_id)
4
- model = HfApiModel(model_id="meta-llama/Llama-2-7b-chat-hf") # Or another model
5
 
6
  # Define custom tools if needed (optional)
7
  from smolagents.tool import tool
 
1
+ from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel
2
 
3
  # Initialize a model (use your preferred model_id)
4
+ model = InferenceClientModel(model_id="meta-llama/Llama-2-7b-chat-hf") # Or another model
5
 
6
  # Define custom tools if needed (optional)
7
  from smolagents.tool import tool