OSU-NLP-Group / TravelPlanner

[ICML'24 Spotlight] "TravelPlanner: A Benchmark for Real-World Planning with Language Agents"
https://osu-nlp-group.github.io/TravelPlanner/
MIT License
215 stars 27 forks source link

bug in load_tools #15

Closed yananchen1989 closed 5 months ago

yananchen1989 commented 5 months ago

hello,

this may be a bug: in agents/tool_agents.py, function load_tools(self, tools: List[str], planner_model_name=None)

should it be changed like this below ? image

because in your original manner, model_name=planner_model_name will not take effect when you want to pass in a planner_model_name which is not the same with the default setting (in class planner: model_name: str = 'gpt-3.5-turbo-0125')

fyi. thanks.

yananchen1989 commented 5 months ago

i tested my change, seems that it passed.

hsaest commented 5 months ago

Hello,

In the original manner, the defualt model (i.e., gpt-3.5-turbo) will be replaced by the passed model (e.g., mistral). It can work then. Not sure why ‘not take effect’?

However, seems your way is more elegant. We will fix it ASAP.

yananchen1989 commented 5 months ago

ok .. yeah i see. in your original way, the planner tool will be initialized twice : first time with default llm. second time with specific llm passed.

hmm, that is fine. thanks for your reply.

yananchen1989 commented 5 months ago

@hsaest by the way, do you have any wechat group for the discussion of this project ? thanks.

hsaest commented 5 months ago

@yananchen1989

haha. we dont have any wechat groups. You can use email to get in touch with us. we will reply ASAP :).