XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

fix(g4f/Provider/AmigoChat.py): correct image generation prompt index

af72d7cf
kqlio67 <kqlio67@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -2
Modified g4f/Provider/AmigoChat.py +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,