diff options
author | kqlio67 <kqlio67@users.noreply.github.com> | 2024-10-21 11:22:33 +0200 |
---|---|---|
committer | kqlio67 <kqlio67@users.noreply.github.com> | 2024-10-21 11:22:33 +0200 |
commit | 238ecf4856af5d8dd6ba6c724362f0c48e34fa38 (patch) | |
tree | 99cd96ecb3ea576490e5a363a332d2a9fe413b27 /g4f | |
parent | Update provider . (diff) | |
download | gpt4free-238ecf4856af5d8dd6ba6c724362f0c48e34fa38.tar gpt4free-238ecf4856af5d8dd6ba6c724362f0c48e34fa38.tar.gz gpt4free-238ecf4856af5d8dd6ba6c724362f0c48e34fa38.tar.bz2 gpt4free-238ecf4856af5d8dd6ba6c724362f0c48e34fa38.tar.lz gpt4free-238ecf4856af5d8dd6ba6c724362f0c48e34fa38.tar.xz gpt4free-238ecf4856af5d8dd6ba6c724362f0c48e34fa38.tar.zst gpt4free-238ecf4856af5d8dd6ba6c724362f0c48e34fa38.zip |
Diffstat (limited to 'g4f')
-rw-r--r-- | g4f/Provider/nexra/NexraBlackbox.py | 6 |
1 files changed, 4 insertions, 2 deletions
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) |