suggestion on logprobs
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, 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!