toolformer-pytorch
toolformer-pytorch copied to clipboard
issues about invoke_tools
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.
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.