From a062ef80a7d798105932712af232bdff0445549a Mon Sep 17 00:00:00 2001 From: anish-work Date: Wed, 3 Jul 2024 00:31:00 +0530 Subject: [PATCH] fix: respect input_images with input_prompt --- routers/bots_api.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/routers/bots_api.py b/routers/bots_api.py index c3b270a39..a0133a3f9 100644 --- a/routers/bots_api.py +++ b/routers/bots_api.py @@ -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: