Quantcast
Channel: User spraff - Stack Overflow
Viewing all articles
Browse latest Browse all 55

When can I expect multiple "choices" in an OpenAI response?

$
0
0

For a simple OpenAI api call in python

response = openai.ChatCompletion.create(    model="gpt-4",    messages=[        {"role": "system", "content": instructions},        {"role": "user", "content": my_input}    ])

I get meaningful data in response['choices'][0]['message']['content']

Under what circumstances will there be multiple entries in response['choices']? How should I interpret this?


Viewing all articles
Browse latest Browse all 55

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>