From 47404bb94ce500cd30ef823770e9073934f2a45a Mon Sep 17 00:00:00 2001 From: kqlio67 Date: Mon, 21 Oct 2024 11:53:15 +0300 Subject: Restore provider . --- g4f/Provider/nexra/NexraBlackbox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'g4f/Provider') 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: -- cgit v1.2.3