Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues about invoke_tools #19

Open
nbllxbl opened this issue Mar 1, 2024 · 1 comment
Open

issues about invoke_tools #19

nbllxbl opened this issue Mar 1, 2024 · 1 comment

Comments

@nbllxbl
Copy link

nbllxbl commented Mar 1, 2024

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.

@joemzhao
Copy link

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 added a commit to joemzhao/toolformer-pytorch that referenced this issue Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants