ShishirPatil / gorilla

Gorilla: Training and Evaluating LLMs for Function Calls (Tool Calls)
https://gorilla.cs.berkeley.edu/
Apache License 2.0
11.52k stars 1.01k forks source link

[BFCL] Patch #724 #730

Closed HuanzhiMao closed 1 month ago

HuanzhiMao commented 1 month ago

This PR fixes an issue introduced in #724. We need to preserve the original func_call to avoid errors during evaluation. func_call should be like xxxx_instance.cd(folder='document') so that when eval(func_call), the cd method is invoked. Without the patch, func_call would become cd and thus resulting in variable not found error.