Skip to content

Commit

Permalink
one line fix for wrapping of custom function tools to create OpenAI a…
Browse files Browse the repository at this point in the history
…ssistant (run-llama#8855)
  • Loading branch information
JohannesHa authored and Ryan Peach committed Feb 7, 2024
1 parent 4b123fd commit bb92a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama_index/agent/openai_assistant_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def from_new(
openai_tools = openai_tools or []
tools = tools or []
tool_fns = [
{"type": "function", "function": t.metadata.to_openai_function()}
t.metadata.to_openai_function()
for t in tools
]
all_openai_tools = openai_tools + tool_fns
Expand Down

0 comments on commit bb92a99

Please sign in to comment.