返回提交历史
Modified
g4f/Provider/needs_auth/OpenaiAPI.py
+1
-1
XFEstudio/gpt4free
Check content-type in OpenaiAPI provider
76b34e60
代码差异
1 个文件
+1
-1
@@ -147,7 +147,7 @@ class OpenaiAPI(AsyncGeneratorProvider, ProviderModelMixin, RaiseErrorMixin):
147
147
break
148
148
else:
149
149
await raise_for_status(response)
150
raise ResponseError(f"Not supported content-type: {response.headers.get("content-type")}")
150
raise ResponseError(f"Not supported content-type: {response.headers.get('content-type')}")
151
151
152
152
@classmethod
153
153
def get_headers(cls, stream: bool, api_key: str = None, headers: dict = None) -> dict: