Skip to content

Commit

Permalink
Merge branch 'master' of github.com:edenai/edenai-apis into fix/image…
Browse files Browse the repository at this point in the history
…_generation
  • Loading branch information
floflokie committed Oct 27, 2023
2 parents 1caa5fb + f1f58ea commit 81d6ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edenai_apis/apis/openai/openai_text_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def text__chat(

# Standardize the response
if stream is False:
generated_text = response["choices"][0]["delta"]["content"]
generated_text = response["choices"][0]["message"]["content"]
message = [
ChatMessageDataClass(role="user", message=text),
ChatMessageDataClass(role="assistant", message=generated_text),
Expand Down

0 comments on commit 81d6ca9

Please sign in to comment.