summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md7
-rw-r--r--g4f/Provider/Liaobots.py57
2 files changed, 41 insertions, 23 deletions
diff --git a/README.md b/README.md
index 9f99a2e4..555c86ea 100644
--- a/README.md
+++ b/README.md
@@ -364,6 +364,13 @@ set G4F_PROXY=http://host:port
<td><a href="https://github.com/mishalhossin/Discord-Chatbot-Gpt4Free/issues"><img alt="Issues" src="https://img.shields.io/github/issues/mishalhossin/Discord-Chatbot-Gpt4Free?style=flat-square&labelColor=343b41"/></a></td>
<td><a href="https://github.com/mishalhossin/Coding-Chatbot-Gpt4Free/pulls"><img alt="Pull Requests" src="https://img.shields.io/github/issues-pr/mishalhossin/Discord-Chatbot-Gpt4Free?style=flat-square&labelColor=343b41"/></a></td>
<tr>
+ <tr>
+ <td><a href="https://github.com/Zero6992/chatGPT-discord-bot"><b>chatGPT-discord-bot</b></a></td>
+ <td><a href="https://github.com/Zero6992/chatGPT-discord-bot/stargazers"><img alt="Stars" src="https://img.shields.io/github/stars/Zero6992/chatGPT-discord-bot?style=flat-square&labelColor=343b41"/></a></td>
+ <td><a href="https://github.com/Zero6992/chatGPT-discord-bot/network/members"><img alt="Forks" src="https://img.shields.io/github/forks/Zero6992/chatGPT-discord-bot?style=flat-square&labelColor=343b41"/></a></td>
+ <td><a href="https://github.com/Zero6992/chatGPT-discord-bot/issues"><img alt="Issues" src="https://img.shields.io/github/issues/Zero6992/chatGPT-discord-bot?style=flat-square&labelColor=343b41"/></a></td>
+ <td><a href="https://github.com/Zero6992/chatGPT-discord-bot/pulls"><img alt="Pull Requests" src="https://img.shields.io/github/issues-pr/Zero6992/chatGPT-discord-bot?style=flat-square&labelColor=343b41"/></a></td>
+<tr>
<td><a href="https://github.com/SamirXR/Nyx-Bot"><b>Nyx-Bot (Discord)</b></a></td>
<td><a href="https://github.com/SamirXR/Nyx-Bot/stargazers"><img alt="Stars" src="https://img.shields.io/github/stars/SamirXR/Nyx-Bot?style=flat-square&labelColor=343b41"/></a></td>
<td><a href="https://github.com/SamirXR/Nyx-Bot/network/members"><img alt="Forks" src="https://img.shields.io/github/forks/SamirXR/Nyx-Bot?style=flat-square&labelColor=343b41"/></a></td>
diff --git a/g4f/Provider/Liaobots.py b/g4f/Provider/Liaobots.py
index b5e7cbe7..b80e46ac 100644
--- a/g4f/Provider/Liaobots.py
+++ b/g4f/Provider/Liaobots.py
@@ -10,18 +10,6 @@ from .helper import get_connector
from ..requests import raise_for_status
models = {
- "gpt-4": {
- "id": "gpt-4",
- "name": "GPT-4",
- "maxLength": 24000,
- "tokenLimit": 8000,
- },
- "gpt-4-0613": {
- "id": "gpt-4-0613",
- "name": "GPT-4",
- "maxLength": 32000,
- "tokenLimit": 8000,
- },
"gpt-3.5-turbo": {
"id": "gpt-3.5-turbo",
"name": "GPT-3.5-Turbo",
@@ -29,14 +17,8 @@ models = {
"tokenLimit": 14000,
"context": "16K",
},
- "gpt-3.5-turbo-16k": {
- "id": "gpt-3.5-turbo-16k",
- "name": "GPT-3.5-16k",
- "maxLength": 48000,
- "tokenLimit": 16000,
- },
- "gpt-4-1106-preview": {
- "id": "gpt-4-1106-preview",
+ "gpt-4-turbo-preview": {
+ "id": "gpt-4-turbo-preview",
"name": "GPT-4-Turbo",
"maxLength": 260000,
"tokenLimit": 126000,
@@ -49,6 +31,13 @@ models = {
"tokenLimit": 31000,
"context": "32K",
},
+ "gpt-4-0613": {
+ "id": "gpt-4-0613",
+ "name": "GPT-4-0613",
+ "maxLength": 60000,
+ "tokenLimit": 15000,
+ "context": "16K",
+ },
"gemini-pro": {
"id": "gemini-pro",
"name": "Gemini-Pro",
@@ -56,13 +45,34 @@ models = {
"tokenLimit": 30000,
"context": "32K",
},
- "claude-2": {
- "id": "claude-2",
- "name": "Claude-2-200k",
+ "claude-3-opus-20240229": {
+ "id": "claude-3-opus-20240229",
+ "name": "Claude-3-Opus",
"maxLength": 800000,
"tokenLimit": 200000,
"context": "200K",
},
+ "claude-3-sonnet-20240229": {
+ "id": "claude-3-sonnet-20240229",
+ "name": "Claude-3-Sonnet",
+ "maxLength": 800000,
+ "tokenLimit": 200000,
+ "context": "200K",
+ },
+ "claude-2.1": {
+ "id": "claude-2.1",
+ "name": "Claude-2.1-200k",
+ "maxLength": 800000,
+ "tokenLimit": 200000,
+ "context": "200K",
+ },
+ "claude-2.0": {
+ "id": "claude-2.0",
+ "name": "Claude-2.0-100k",
+ "maxLength": 400000,
+ "tokenLimit": 100000,
+ "context": "100K",
+ },
"claude-instant-1": {
"id": "claude-instant-1",
"name": "Claude-instant-1",
@@ -72,6 +82,7 @@ models = {
}
}
+
class Liaobots(AsyncGeneratorProvider, ProviderModelMixin):
url = "https://liaobots.site"
working = True