From af72d7cfc7e84eed97730567c139ad69e568dce8 Mon Sep 17 00:00:00 2001 From: kqlio67 Date: Sat, 19 Oct 2024 12:22:24 +0300 Subject: fix(g4f/Provider/AmigoChat.py): correct image generation prompt index --- g4f/Provider/AmigoChat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/g4f/Provider/AmigoChat.py b/g4f/Provider/AmigoChat.py index 5e896dc8..5d579841 100644 --- a/g4f/Provider/AmigoChat.py +++ b/g4f/Provider/AmigoChat.py @@ -14,7 +14,6 @@ class AmigoChat(AsyncGeneratorProvider, ProviderModelMixin): chat_api_endpoint = "https://api.amigochat.io/v1/chat/completions" image_api_endpoint = "https://api.amigochat.io/v1/images/generations" working = True - supports_gpt_4 = True supports_stream = True supports_system_message = True supports_message_history = True @@ -159,7 +158,7 @@ class AmigoChat(AsyncGeneratorProvider, ProviderModelMixin): pass else: # Image generation - prompt = messages[0]['content'] + prompt = messages[-1]['content'] data = { "prompt": prompt, "model": model, -- cgit v1.2.3