Merge pull request #1744 from igeni/concat2fstr

modified to avoid type's mismatch and make like rest of the code
This commit is contained in:
H Lohaus 2024-03-23 11:44:00 +01:00 committed by GitHub
commit bf82352a3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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: