mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-23 19:11:48 +03:00
modified to avoid type's mismatch and make like rest of the code
This commit is contained in:
parent
29d0dd9387
commit
1989e0fd20
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user