返回提交历史
Modified
g4f/Provider/AmigoChat.py
+1
-2
XFEstudio/gpt4free
fix(g4f/Provider/AmigoChat.py): correct image generation prompt index
af72d7cf
代码差异
1 个文件
+1
-2
@@ -14,7 +14,6 @@ class AmigoChat(AsyncGeneratorProvider, ProviderModelMixin):
14
14
chat_api_endpoint = "https://api.amigochat.io/v1/chat/completions"
15
15
image_api_endpoint = "https://api.amigochat.io/v1/images/generations"
16
16
working = True
17
supports_gpt_4 = True
18
17
supports_stream = True
19
18
supports_system_message = True
20
19
supports_message_history = True
@@ -159,7 +158,7 @@ class AmigoChat(AsyncGeneratorProvider, ProviderModelMixin):
159
158
pass
160
159
else:
161
160
# Image generation
162
prompt = messages[0]['content']
161
prompt = messages[-1]['content']
163
162
data = {
164
163
"prompt": prompt,
165
164
"model": model,