openai-openapi icon indicating copy to clipboard operation
openai-openapi copied to clipboard

suggestion on logprobs

Open nameearly opened this issue 10 months ago • 1 comments

hope can return logprobs of target token, such "yes" and "no" very much can early stop and Engineering optimization Forcing the model to output in a specific format that may increase hallucinations, can also reduce in many cases.

nameearly avatar Jan 26 '26 19:01 nameearly

@nameearly, thanks for raising this!

Requesting scores for specific tokens is a useful use case to highlight. The current top_logprobs option doesn’t guarantee that a particular token will appear, so it doesn’t fully address what you’re asking for.

We’ve recorded this as a feature request. Supporting it requires work beyond the OpenAPI specification, so we’re closing this issue here rather than treating it as a schema correction. We don’t have an implementation timeline to share, but appreciate you pointing out the gap!

markstuart-oai avatar Sep 22 '26 22:09 markstuart-oai