server: add "schema" and validation#24150
Merged
Merged
Conversation
Contributor
|
Testing this on my pod. It seems to me that the OAI spec can have sampling values less than 0 even if it is rarely useful in practice, such as encouraging repetitions with frequency_penalty. ( https://developers.openai.com/api/reference/python/resources/completions/methods/create search for "-2") |
Collaborator
Author
|
@ServeurpersoCom can you have a look? let's try to merge it today ~ tmr to avoid conflicts |
Contributor
|
I'm merging on my server and doing a quick non-reg :) |
papamoose
pushed a commit
to papamoose/llama.cpp
that referenced
this pull request
Jun 27, 2026
* wip * working * correct some limits * add field name to error message
adrianhoehne
pushed a commit
to adrianhoehne/llama.cpp
that referenced
this pull request
Jul 5, 2026
* wip * working * correct some limits * add field name to error message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Add the notion of
server_schemathat will define the input schema in a more systematic way.This is actually something I wanted to do since a long time ago. Motivations for this proposal:
TODO in follow-up PRs:
Example of the code:
Requirements