Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: fix string & ws rules in json_func_calls...gbnf #754

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

jimlloyd
Copy link
Contributor

@jimlloyd jimlloyd commented Jan 1, 2024

Please describe the purpose of this pull request.
I believe this fixes a bug with json_func_calls...gbnf. See issue #748

How to test
Manual testing only (for now). I am currently testing with NexusRaven-V2-13B and the temperature reduced to 0.01. Engage in discussion about C/C++ or any language with braces.

Have you tested this PR?
I am still testing. This is WIP.

Related issues or PRs
#748

Is your PR over 500 lines of code?
No

Additional context
See issue #748

@cpacker cpacker linked an issue Jan 1, 2024 that may be closed by this pull request
3 tasks
@cpacker cpacker self-requested a review January 1, 2024 10:24
@cpacker cpacker changed the title fix string & ws rules in json_func_calls...gbnf fix: string & ws rules in json_func_calls...gbnf Jan 1, 2024
@cpacker cpacker changed the title fix: string & ws rules in json_func_calls...gbnf fix: fix string & ws rules in json_func_calls...gbnf Jan 1, 2024
@jimlloyd
Copy link
Contributor Author

jimlloyd commented Jan 1, 2024

@cpacker I have tested this enough to be confident that it is at least as good as the original code 😏.

(I have to wrap my head around doing this kind of development: writing unit tests is not straightforward.)

I think this PR is ready for your approval.

PTAL

@cpacker
Copy link
Collaborator

cpacker commented Jan 2, 2024

Thank you for this PR!

@cpacker cpacker merged commit 2e3da22 into letta-ai:main Jan 2, 2024
3 of 4 checks passed
@jimlloyd jimlloyd deleted the fix-json-func-calls branch January 2, 2024 18:43
norton120 pushed a commit to norton120/MemGPT that referenced this pull request Feb 15, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

json_func_calls_with_inner_thoughts string broken?
2 participants