summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/needs_auth/ThebApi.py
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-11-09 08:48:34 +0100
committerkqlio67 <kqlio67@users.noreply.github.com>2024-11-09 08:48:34 +0100
commitc1e6276414632761b5ed6a98f61ca4cb7286e582 (patch)
treeb822f19fed9c1e6006db309023c9d18f99d4becd /g4f/Provider/needs_auth/ThebApi.py
parentfix(g4f/Provider/Blackbox.py): Improve Blackbox AI response text processing (diff)
downloadgpt4free-c1e6276414632761b5ed6a98f61ca4cb7286e582.tar
gpt4free-c1e6276414632761b5ed6a98f61ca4cb7286e582.tar.gz
gpt4free-c1e6276414632761b5ed6a98f61ca4cb7286e582.tar.bz2
gpt4free-c1e6276414632761b5ed6a98f61ca4cb7286e582.tar.lz
gpt4free-c1e6276414632761b5ed6a98f61ca4cb7286e582.tar.xz
gpt4free-c1e6276414632761b5ed6a98f61ca4cb7286e582.tar.zst
gpt4free-c1e6276414632761b5ed6a98f61ca4cb7286e582.zip
Diffstat (limited to 'g4f/Provider/needs_auth/ThebApi.py')
-rw-r--r--g4f/Provider/needs_auth/ThebApi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/g4f/Provider/needs_auth/ThebApi.py b/g4f/Provider/needs_auth/ThebApi.py
index 22fc62ed..2006f7ad 100644
--- a/g4f/Provider/needs_auth/ThebApi.py
+++ b/g4f/Provider/needs_auth/ThebApi.py
@@ -1,7 +1,7 @@
from __future__ import annotations
from ...typing import CreateResult, Messages
-from .Openai import Openai
+from .OpenaiAPI import OpenaiAPI
models = {
"theb-ai": "TheB.AI",
@@ -27,7 +27,7 @@ models = {
"qwen-7b-chat": "Qwen 7B"
}
-class ThebApi(Openai):
+class ThebApi(OpenaiAPI):
label = "TheB.AI API"
url = "https://theb.ai"
working = True
@@ -58,4 +58,4 @@ class ThebApi(Openai):
"top_p": top_p,
}
}
- return super().create_async_generator(model, messages, api_base=api_base, extra_data=data, **kwargs) \ No newline at end of file
+ return super().create_async_generator(model, messages, api_base=api_base, extra_data=data, **kwargs)