Skip to content

Commit

Permalink
fix: Address exception `send_message_to_agent() missing 1 required po…
Browse files Browse the repository at this point in the history
…sitional argument: 'stream_legacy'` on 'v1/chat/completions' (#1592)
  • Loading branch information
vysona-scott authored Jul 30, 2024
1 parent 1317984 commit ed8b03f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ async def create_chat_completion(
agent_id=agent_id,
user_id=user_id,
role=input_message.role,
message=input_message.content,
message=str(input_message.content),
stream_legacy=False,
# Turn streaming ON
stream_steps=True,
stream_tokens=True,
Expand All @@ -75,7 +76,8 @@ async def create_chat_completion(
agent_id=agent_id,
user_id=user_id,
role=input_message.role,
message=input_message.content,
message=str(input_message.content),
stream_legacy=False,
# Turn streaming OFF
stream_steps=False,
stream_tokens=False,
Expand Down

0 comments on commit ed8b03f

Please sign in to comment.