AliA1997
commited on
Commit
·
4e6198d
1
Parent(s):
b55a082
Added tool-choice auto to inferenceclientmodel.
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ login(os.environ.get('HF_TOKEN'))
|
|
| 7 |
|
| 8 |
def create_agent():
|
| 9 |
tools = [DuckDuckGoSearchTool()]
|
| 10 |
-
model = InferenceClientModel()
|
| 11 |
return ToolCallingAgent(tools=tools, model=model)
|
| 12 |
|
| 13 |
|
|
|
|
| 7 |
|
| 8 |
def create_agent():
|
| 9 |
tools = [DuckDuckGoSearchTool()]
|
| 10 |
+
model = InferenceClientModel(tool_choice="auto")
|
| 11 |
return ToolCallingAgent(tools=tools, model=model)
|
| 12 |
|
| 13 |
|