toolformer-pytorch icon indicating copy to clipboard operation
toolformer-pytorch copied to clipboard

issues about invoke_tools

Open nbllxbl opened this issue 1 year ago • 1 comments

My invoke_tools function can't get right outputs, but when I replace "regex = create_function_regex(wapi_start, api_stop)" line in function with regex = create_function_regex(), things get better. I don't know why but it does work.

nbllxbl avatar Mar 01 '24 10:03 nbllxbl

https://github.com/lucidrains/toolformer-pytorch/blob/main/toolformer_pytorch/toolformer_pytorch.py#L195

api_stop should be "]" rather than " ]", which leads to different regex so the tools are not called.

joemzhao avatar Jul 22 '24 06:07 joemzhao