choices_method arg determines how options supplied to SGLang’s choices primitive are selected. Only the RuntimeEndpoint backend supports the choices_method arg. Other backends, such as OpenAI, have bespoke selection implementations due to API limitations.
Methods
Token Length Normalized
Token length normalized is the default SGLang choices method. It selects the option with the highest average logprob across all of its tokens. Usage example (alternatively, simply omit thechoices_method arg):
["Paris", "Antidisestablishmentarianism"].
