summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-19 11:22:24 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-19 11:22:24 +0200
commitaf72d7cfc7e84eed97730567c139ad69e568dce8 (patch)
treef59fa42520f4ec2c7884a075130a1e8fbf0a16a4 /g4f/Provider
parentMerge pull request #2277 from kqlio67/main (diff)
downloadgpt4free-af72d7cfc7e84eed97730567c139ad69e568dce8.tar
gpt4free-af72d7cfc7e84eed97730567c139ad69e568dce8.tar.gz
gpt4free-af72d7cfc7e84eed97730567c139ad69e568dce8.tar.bz2
gpt4free-af72d7cfc7e84eed97730567c139ad69e568dce8.tar.lz
gpt4free-af72d7cfc7e84eed97730567c139ad69e568dce8.tar.xz
gpt4free-af72d7cfc7e84eed97730567c139ad69e568dce8.tar.zst
gpt4free-af72d7cfc7e84eed97730567c139ad69e568dce8.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/AmigoChat.py3
1 files changed, 1 insertions, 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,