You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Thanks a lot for making this library, it's been super helpful! I am working on a text classification task and I wanted to get multiple parsed responses from a single client.chat.completions.create call using OpenAI's n parameter.
The following would only parse the first completion I believe:
client.chat.completions.create_with_completion(
model="gpt-3.5-turbo-0613",
response_model=SinglePrediction,
messages=[
{
"role": "user",
"content": f"Classify the following text: {data}",
},
],
n=3,
)
How would you recommend going on about it? Thank you!
The text was updated successfully, but these errors were encountered:
Describe the solution you'd like
Thanks a lot for making this library, it's been super helpful! I am working on a text classification task and I wanted to get multiple parsed responses from a single
client.chat.completions.create
call using OpenAI's n parameter.The following would only parse the first completion I believe:
How would you recommend going on about it? Thank you!
The text was updated successfully, but these errors were encountered: