xtekky / gpt4free

The official gpt4free repository | various collection of powerful language models
https://g4f.ai
GNU General Public License v3.0
60.96k stars 13.29k forks source link

Problem with image generation in AmigoChat: the second image does not match the new promt #2283

Open Vasabiko opened 2 weeks ago

Vasabiko commented 2 weeks ago

Problem description: When generating images, the following happens: the first request generates an image that matches the given promt. However, the second image generated after that does not match the new promt, even though it is completely different.

Steps to reproduce the problem: Send the first request with the promt Get an image that matches the first promt. Send a second request with the new promt Get an image that does not match the new promt. Expected result: The first image should match the first promt and the second image should match the new promt.

Actual result: The first image matches the first promt and the second image does not match the new promt.

Additional information:

The problem occurs on all image models. In order to successfully generate a new image, I need to completely clear the chat and only then enter the new promt. The command line logs show the following:

`INFO:werkzeug:Press CTRL+C to quit
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:37:21] "GET /static/img/favicon-32x32.png HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:41:10] "GET /chat/26d5e606-45ba-4b90-a6ed-1929c6b1da6 HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:41:11] "GET /static/js/text_to_speech/630.index.js HTTP/1.1" 304 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:41:12] "GET /static/js/text_to_speech/900.index.js HTTP/1.1" 304 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:41:13] "GET /backend-api/v2/providers HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:41:14] "GET /backend-api/v2/version HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:41:15] "GET /backend-api/v2/models/AmigoChat HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:41:26] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:41:27] "GET /images/1729273286_2abaeb40-b765-4d94-8f8e-a6f2e961ae6e.jpg HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:41:48] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:41:49] "GET /images/1729273309_7de89b9d-0e4b-4b5c-8ea2-30a4dce1e6b1.jpg HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:42:07] "GET /images/1729273309_7de89b9d-0e4b-4b5c-8ea2-30a4dce1e6b1.jpg HTTP/1.1" 304 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:42:07] "GET /favicon.ico HTTP/1.1" 404 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:42:11] "GET /images/1729201129_c48e1d46-b78f-4be6-89eb-36ae8c78d6fe.jpg HTTP/1.1" 304 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:42:16] "GET /images/1729273286_2abaeb40-b765-4d94-8f8e-a6f2e961ae6e.jpg HTTP/1.1" 304 -
Couldn't do web search: https://links.duckduckgo.com/d.js RuntimeError: error sending request for url (https://links.duckduckgo.com/d.js?q=An+enchanting+abstract+scene+of+strong%2C+flowing+glitter+waves%2C+with+sparkling+gold+and+silver+particles+intermingling+with+rich+emerald+green%2C+sapphire+blue%2C+and+ruby+red+hues.+The+background+transitions+into+a+soft+gradient+of+blues+and+greens%2C+enhancing+the+serene+yet+lively+atmosphere.+The+powerful+waves+are+adorned+with+intricate%2C+multicolored+glistening+particles%2C+creating+a+mesmerizing+and+dynamic+visual+effect&kl=wt-wt&l=wt-wt&p=&s=0&df=y&vqd=4-190001447395916166622408518142687101090&bing_market=wt-WT&ex=-1): connection error: [TLSV1_ALERT_PROTOCOL_VERSION]

Caused by:
    0: connection error: [TLSV1_ALERT_PROTOCOL_VERSION]
    1: [TLSV1_ALERT_PROTOCOL_VERSION]
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:42:38] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:42:39] "GET /images/1729273359_4703519d-6994-45ca-a25a-d1b164cd65a3.jpg HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:42:57] "GET /images/1729273359_4703519d-6994-45ca-a25a-d1b164cd65a3.jpg HTTP/1.1" 304 -
Couldn't do web search: https://duckduckgo.com/?q=A+close-up+image+of+a+vibrant+red+rosebud.+The+petals+are+tightly+curled%2C+revealing+hints+of+yellow+at+the+center.+The+surface+of+the+petals+is+velvety+and+soft%2C+with+delicate+dewdrops+glistening+on+them.+The+rosebud+is+surrounded+by+lush+green+leaves%2C+adding+contrast+to+the+vibrant+red.+The+background+is+slightly+blurred%2C+enhancing+the+focus+on+the+rosebud.+The+overall+composition+exudes+beauty%2C+elegance%2C+and+the+freshness+of+nature.+Photography+%28Macro+style%29+with+a+high-resolution+DSLR+camera%2C+using+a+macro+lens+to+capture+intricate+details. return None. params={'q': 'A close-up image of a vibrant red rosebud. The petals are tightly curled, revealing hints of yellow at the center. The surface of the petals is velvety and soft, with delicate dewdrops glistening on them. The rosebud is surrounded by lush green leaves, adding contrast to the vibrant red. The background is slightly blurred, enhancing the focus on the rosebud. The overall composition exudes beauty, elegance, and the freshness of nature. Photography (Macro style) with a high-resolution DSLR camera, using a macro lens to capture intricate details.'} content=None data=None
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:43:27] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:43:28] "GET /images/1729273407_6bc7c05a-6ab6-4b62-bc3a-98290a875aed.jpg HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:43:41] "GET /images/1729273407_6bc7c05a-6ab6-4b62-bc3a-98290a875aed.jpg HTTP/1.1" 304 -
Couldn't do web search: https://links.duckduckgo.com/d.js RuntimeError: error sending request for url (https://links.duckduckgo.com/d.js?q=macro+agate&kl=wt-wt&l=wt-wt&p=&s=0&df=y&vqd=4-207364445657334178540515793758414359042&bing_market=wt-WT&ex=-1): operation timed out

Caused by:
    operation timed out
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:45:34] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:45:35] "GET /images/1729273534_2d6fd030-83e8-4164-8413-0ba0f2de4c40.jpg HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:46:58] "GET /images/1729273534_2d6fd030-83e8-4164-8413-0ba0f2de4c40.jpg HTTP/1.1" 304 -
Couldn't do web search: https://links.duckduckgo.com/d.js RuntimeError: error sending request for url (https://links.duckduckgo.com/d.js?q=An+abstract+representation+of+a+shiny%2C+reflective+material+with+waves+of+iridescent+colors.+This+quadrant+is+filled+with+vibrant+hues+of+blue%2C+purple%2C+orange%2C+and+gold.&kl=wt-wt&l=wt-wt&p=&s=0&df=y&vqd=4-338959641642769987535544460288626517445&bing_market=wt-WT&ex=-1): connection error: [TLSV1_ALERT_PROTOCOL_VERSION]

Caused by:
    0: connection error: [TLSV1_ALERT_PROTOCOL_VERSION]
    1: [TLSV1_ALERT_PROTOCOL_VERSION]
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:47:25] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 20:47:26] "GET /images/1729273646_8d51113a-7624-4e3f-807e-a5c0381d8b1a.jpg HTTP/1.1" 200 -
Couldn't do web search: https://links.duckduckgo.com/d.js RuntimeError: error sending request for url (https://links.duckduckgo.com/d.js?q=cat+&kl=wt-wt&l=wt-wt&p=&s=0&df=y&vqd=4-25385853395688913436795736692636629597&bing_market=wt-WT&ex=-1): connection error: [TLSV1_ALERT_PROTOCOL_VERSION]

Caused by:
    0: connection error: [TLSV1_ALERT_PROTOCOL_VERSION]
    1: [TLSV1_ALERT_PROTOCOL_VERSION]
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 21:13:21] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
INFO:werkzeug:192.168.1.2 - - [18/Oct/2024 21:13:25] "GET /images/1729275201_8fc281b8-aec3-4702-9b8c-9dfabdaa135b.png HTTP/1.1" 200 -`
github-actions[bot] commented 6 days ago

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.