modified to avoid type's mismatch and make like rest of the code

This commit is contained in:
igeni 2024-03-22 20:35:42 +03:00
parent 29d0dd9387
commit 1989e0fd20

View File

@ -462,7 +462,7 @@ async def stream_generate(
response_txt = card.get('text')
if message.get('messageType') and "inlines" in card:
inline_txt = card['inlines'][0].get('text')
response_txt += inline_txt + '\n'
response_txt += f"{inline_txt}\n"
elif message.get('contentType') == "IMAGE":
prompt = message.get('text')
try: