diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-02-14 09:22:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 09:22:32 +0100 |
commit | 51686409f86e187d9c13cbea9388f31f567a118c (patch) | |
tree | c4291ff5375b77d70622cfa25490f5a02a5ee970 /g4f/Provider/needs_auth | |
parent | Update client.md (diff) | |
parent | Add unitests for the client (diff) | |
download | gpt4free-51686409f86e187d9c13cbea9388f31f567a118c.tar gpt4free-51686409f86e187d9c13cbea9388f31f567a118c.tar.gz gpt4free-51686409f86e187d9c13cbea9388f31f567a118c.tar.bz2 gpt4free-51686409f86e187d9c13cbea9388f31f567a118c.tar.lz gpt4free-51686409f86e187d9c13cbea9388f31f567a118c.tar.xz gpt4free-51686409f86e187d9c13cbea9388f31f567a118c.tar.zst gpt4free-51686409f86e187d9c13cbea9388f31f567a118c.zip |
Diffstat (limited to 'g4f/Provider/needs_auth')
-rw-r--r-- | g4f/Provider/needs_auth/OpenaiChat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/needs_auth/OpenaiChat.py b/g4f/Provider/needs_auth/OpenaiChat.py index 9e0edd8a..b3577ad5 100644 --- a/g4f/Provider/needs_auth/OpenaiChat.py +++ b/g4f/Provider/needs_auth/OpenaiChat.py @@ -385,7 +385,7 @@ class OpenaiChat(AsyncGeneratorProvider, ProviderModelMixin): } ) as response: if not response.ok: - raise RuntimeError(f"Response {response.status_code}: {await response.text()}") + raise RuntimeError(f"Response {response.status}: {await response.text()}") last_message: int = 0 async for line in response.iter_lines(): if not line.startswith(b"data: "): |