返回提交历史
Modified
g4f/Provider/template/OpenaiTemplate.py
+1
-1
XFEstudio/gpt4free
Update OpenaiTemplate.py
fdbd84b7
代码差异
1 个文件
+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