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

XFEstudio/gpt4free

Update Azure output format to PNG and ensure Together model authentication requirement is clear

0ac4239a
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

2 个文件 +2 -1
Modified g4f/Provider/needs_auth/Azure.py +1 -1
@@ -88,7 +88,7 @@ class Azure(OpenaiTemplate):
88 88 if api_endpoint and "/images/" in api_endpoint:
89 89 prompt = format_media_prompt(messages, kwargs.get("prompt"))
90 90 width, height = get_width_height(kwargs.get("aspect_ratio", "1:1"), kwargs.get("width"), kwargs.get("height"))
91 output_format = kwargs.get("output_format", "webp")
91 output_format = kwargs.get("output_format", "png")
92 92 form = None
93 93 data = None
94 94 if media:
Modified g4f/Provider/needs_auth/Together.py +1 -0
@@ -14,6 +14,7 @@ class Together(OpenaiTemplate):
14 14 active_by_default = False
15 15 working = True
16 16 needs_auth = True
17 models_needs_auth = True
17 18 supports_stream = True
18 19 supports_system_message = True
19 20 supports_message_history = True