Skip to content

Commit

Permalink
Merge pull request #329 from femto/main
Browse files Browse the repository at this point in the history
  • Loading branch information
MadcowD authored Oct 23, 2024
2 parents da21bb8 + 479e979 commit 4cc62ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ell/providers/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def translate_from_provider(
for _, message_stream in sorted(message_streams.items(), key=lambda x: x[0]):
text = "".join((choice.delta.content or "") for choice in message_stream)
messages.append(
Message(role=role,
Message(role=role or "assistant",
content=_lstr(content=text,origin_trace=origin_id)))
#XXX: Support streaming other types.
else:
Expand Down

0 comments on commit 4cc62ec

Please sign in to comment.