Skip to content

Commit

Permalink
fix: respect input_images with input_prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-work committed Jul 2, 2024
1 parent 957abe0 commit a062ef8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions routers/bots_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,12 @@ def __init__(self, request: CreateStreamRequest):
created_at=self.convo.created_at.isoformat(),
)
)

if request.input_prompt:
if request.input_images:
self.input_type = "image"
elif request.input_prompt:
self.input_type = "text"
elif request.input_audio:
self.input_type = "audio"
elif request.input_images:
self.input_type = "image"
elif request.input_documents:
self.input_type = "document"
elif button := request.button_pressed:
Expand Down

0 comments on commit a062ef8

Please sign in to comment.