#Why am I getting multiple “choices” in my API response?

3 messages · Page 1 of 1 (latest)

prisma jetty
#

I get multiple choices in my API response for Davinci-003 and I don’t know how to programmatically select the “best” one for a chat bot application.

On Playground with the same parameters, it always picks the “best” answer. How does it do that? What is the difference between the API and Playground or what might be my user error?

lost granite
#

It shouldn't be returning multiple choices, it should only be returning one choice, you must be passing in a parameter to the API call that causes it to return multiple choices, double check your POST body 🙂

torn scaffold
#

I think it's the "Best of" property, should be 1

or, in your code, you need to handle the choices yourself