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

Wrong inputs in function call #30

Closed
jakepgoldman opened this issue Apr 27, 2024 · 1 comment
Closed

Wrong inputs in function call #30

jakepgoldman opened this issue Apr 27, 2024 · 1 comment

Comments

@jakepgoldman
Copy link

this.updateUserContext('function', functionName, functionResponse);

The function updateUserContext(name, role, text) has the following order of params, but in the function call when using tools within the gpt-service, you have the ordering as this.updateUserContext('function', functionName, functionResponse); which is (role, name, text). This causes all of the tool fns to throw since it's expecting a role type of function but you are passing in the function name instead.

@mercuryyy
Copy link

Fix is here - #32

you can copy code or just fork and pull

@cweems cweems closed this as completed Jun 8, 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

3 participants