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

XFEstudio/gpt4free

Update OpenaiTemplate.py

fdbd84b7
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/Provider/template/OpenaiTemplate.py +1 -1
@@ -336,7 +336,7 @@ class OpenaiTemplate(AsyncGeneratorProvider, ProviderModelMixin, RaiseErrorMixin
336 336 return {
337 337 "Accept": "text/event-stream" if stream else "application/json",
338 338 "Content-Type": "application/json",
339 # **({"Authorization": f"Bearer {api_key}"} if api_key else {}),
339 **({"Authorization": f"Bearer {api_key}"} if api_key else {}),
340 340 **({} if headers is None else headers),
341 341 }
342 342