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

fix: Update grammar generator and Fixes "None" model in chat_completion_proxy #1207

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Maximilian-Winter
Copy link
Contributor

@Maximilian-Winter Maximilian-Winter commented Apr 2, 2024

Please describe the purpose of this pull request.
Update the grammar generator to contain fixes and additional functionality. And fixes possible none value of the model in chat_completion_proxy

How to test
Use a local llm with grammar wrapper

Is your PR over 500 lines of code?
No

@Maximilian-Winter Maximilian-Winter changed the title Update grammar generator fix: Update grammar generator Apr 2, 2024
@Maximilian-Winter Maximilian-Winter changed the title fix: Update grammar generator fix: Update grammar generator and Fixes "None" model in chat_completion_proxy Apr 2, 2024
processed_models,
created_rules,
field_info=None,
) -> tuple[str, list[str]]:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to go from Tuple to tuple?

Why not Tuple[str, List[str]]?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I think some kind of formatter did that. I just copied the updated grammar generator from my llama-cpp-agent framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

None yet

2 participants