For some reason, whenever I do:
response = openai.ChatCompletion.create(
engine="chatgpt",
model="gpt-35-turbo",
messages=[
{"role": "system", "content": "some text here"},
{"role": "user", "content": "some more text here"}
],
stream=True
)
for chunk in response:
print(chunk)
The create
function will always return:
Invalid response object from API: '{ "statusCode": 500, "message": "Internal server error", "activityId": "some_id_here" }' (HTTP response code was 500)
Setting stream=False
works fine. Is this a problem on my side? Or some sort of restriction OpenAI put on my account? Can't find anything in the API documentation that explains this behaviour