OceannTwT / Tool-Planner

Tool-Planner: Dynamic Solution Tree Planning for Large Language Model with Tool Clustering
https://arxiv.org/pdf/2406.03807
114 stars 4 forks source link

Question: Do you call the APIs with GPT's function calling? #4

Closed caizhuoyue77 closed 3 weeks ago

caizhuoyue77 commented 3 weeks ago

Hi, great paper. I wonder if you are using ChatGPT's function calling to call the APIs, I didn't find details about this in the paper.

Thanks!

OceannTwT commented 3 weeks ago

Yes, we indeed use chatgpt function calling to call APIs

new_prediction = gpt_fact.predict_fun(functions = open_functions)

See: Tool-Planner/src/planner /plan.py

caizhuoyue77 commented 3 weeks ago

Yes, we indeed use chatgpt function calling to call APIs

new_prediction = gpt_fact.predict_fun(functions = open_functions)

See: Tool-Planner/src/planner /plan.py

Ok, thanks!