diff options
author | kqlio67 <kqlio67@users.noreply.github.com> | 2024-10-21 10:53:15 +0200 |
---|---|---|
committer | kqlio67 <kqlio67@users.noreply.github.com> | 2024-10-21 10:53:15 +0200 |
commit | 47404bb94ce500cd30ef823770e9073934f2a45a (patch) | |
tree | 8ec06476013eb8dd779bcc46e42d6481af2faa24 /g4f | |
parent | Update (main.py g4f/models.py) (diff) | |
download | gpt4free-47404bb94ce500cd30ef823770e9073934f2a45a.tar gpt4free-47404bb94ce500cd30ef823770e9073934f2a45a.tar.gz gpt4free-47404bb94ce500cd30ef823770e9073934f2a45a.tar.bz2 gpt4free-47404bb94ce500cd30ef823770e9073934f2a45a.tar.lz gpt4free-47404bb94ce500cd30ef823770e9073934f2a45a.tar.xz gpt4free-47404bb94ce500cd30ef823770e9073934f2a45a.tar.zst gpt4free-47404bb94ce500cd30ef823770e9073934f2a45a.zip |
Diffstat (limited to 'g4f')
-rw-r--r-- | g4f/Provider/nexra/NexraBlackbox.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g4f/Provider/nexra/NexraBlackbox.py b/g4f/Provider/nexra/NexraBlackbox.py index 87eea8e2..732593fe 100644 --- a/g4f/Provider/nexra/NexraBlackbox.py +++ b/g4f/Provider/nexra/NexraBlackbox.py @@ -39,8 +39,8 @@ class NexraBlackbox(AbstractProvider, ProviderModelMixin): stream: bool, **kwargs ) -> CreateResult: - model = model or cls.default_model - + model = cls.get_model(model) + headers = { 'Content-Type': 'application/json' } @@ -59,7 +59,7 @@ class NexraBlackbox(AbstractProvider, ProviderModelMixin): } response = requests.post(cls.url, headers=headers, json=data, stream=stream) - + if stream: return cls.process_streaming_response(response) else: |