mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix using ImageResponse
This commit is contained in:
parent
7a75782af3
commit
6a4dc74b9e
10 changed files with 10 additions and 10 deletions
|
|
@ -639,7 +639,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
|
|||
image_url_match = re.search(r'!\[.*?\]\((.*?)\)', full_response_text)
|
||||
if image_url_match:
|
||||
image_url = image_url_match.group(1)
|
||||
yield ImageResponse(images=[image_url], alt=format_image_prompt(messages, prompt))
|
||||
yield ImageResponse(urls=[image_url], alt=format_image_prompt(messages, prompt))
|
||||
return
|
||||
|
||||
# Handle conversation history once, in one place
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue