From 238ecf4856af5d8dd6ba6c724362f0c48e34fa38 Mon Sep 17 00:00:00 2001 From: kqlio67 Date: Mon, 21 Oct 2024 12:22:33 +0300 Subject: Update provider . --- g4f/Provider/nexra/NexraBlackbox.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'g4f/Provider/nexra') diff --git a/g4f/Provider/nexra/NexraBlackbox.py b/g4f/Provider/nexra/NexraBlackbox.py index 0731b1c0..1b316803 100644 --- a/g4f/Provider/nexra/NexraBlackbox.py +++ b/g4f/Provider/nexra/NexraBlackbox.py @@ -8,7 +8,9 @@ from ..base_provider import ProviderModelMixin, AbstractProvider from ..helper import format_prompt class NexraBlackbox(AbstractProvider, ProviderModelMixin): - url = "https://nexra.aryahcr.cc/api/chat/complements" + label = "Nexra Blackbox" + url = "https://nexra.aryahcr.cc/documentation/blackbox/en" + api_endpoint = "https://nexra.aryahcr.cc/api/chat/complements" working = True supports_stream = True @@ -52,7 +54,7 @@ class NexraBlackbox(AbstractProvider, ProviderModelMixin): "model": model } - response = requests.post(cls.url, headers=headers, json=data, stream=stream) + response = requests.post(cls.api_endpoint, headers=headers, json=data, stream=stream) if stream: return cls.process_streaming_response(response) -- cgit v1.2.3