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

server : add condition for grammar #11863

Closed

Conversation

danbev
Copy link
Collaborator

@danbev danbev commented Feb 14, 2025

This commit adds a condition to check if the json_schema is null before adding the grammar and grammar_triggers to the llama_params.

The motivation of this is to prevent the server from throwing an exeption as the request will have both a json_schema and a grammar field.

Resolves: #11847

This commit adds a condition to check if the json_schema is null before
adding the grammar and grammar_triggers to the llama_params.

The motivation of this is to prevent the server from throwing an
exeption as the request will have both a json_schema and a grammar
field.

Resolves: ggerganov#11847
@danbev danbev requested a review from ngxson as a code owner February 14, 2025 08:39
@ggerganov ggerganov requested a review from ochafik February 14, 2025 08:53
@ngxson ngxson removed their request for review February 14, 2025 14:56
@danbev
Copy link
Collaborator Author

danbev commented Feb 17, 2025

I think this is incorrect and that it also might be addressed by #11900, so I'm closing this to avoid confusion.

@danbev danbev closed this Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misc. bug: "response_format" on the OpenAI compatible "v1/chat/completions" issue
1 participant