Set max_tokens to 1 and Read Logprobs: Turn Any Hosted LLM Into a Classifier

keep_up_sharma · reddit · 2026-09-24

A developer shares a trick to get Jev-style (even multimodal) decisions out of any hosted LLM provider without a new model: set maxtokens: 1, request logprobs from the API, and read the model's real probability over the option ids you provide. This works across multiple LLM providers and cuts both latency and cost for many tasks. An open-source (MIT) web demo is available at decidr-ts.

Original post →

More from coding & agent

coding & agent channel →