Skip to content

Commit

Permalink
Fix a race that sometimes hides stop streaming (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
krschacht committed Apr 26, 2024
1 parent b3ceb36 commit 1db2d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/messages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def index
@messages = @conversation.messages.for_conversation_version(@version)
@new_message = @assistant.messages.new(conversation: @conversation)
@streaming_message = Message.where(
content_text: nil,
content_text: [nil, ""],
cancelled_at: nil
).find_by(id: redis.get("conversation-#{@conversation.id}-latest-assistant_message-id"))
end
Expand Down

0 comments on commit 1db2d8d

Please sign in to comment.