XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Update Liaobots.py (#1678)

* Update Liaobots.py Added Claude 3 models and updated other models

d6d75c28
OmiiiDev <103533638+OmiiiDev@users.noreply.github.com>
提交于

代码差异

1 个文件 +34 -23
Modified g4f/Provider/Liaobots.py +34 -23
@@ -10,18 +10,6 @@ from .helper import get_connector
10 10 from ..requests import raise_for_status
11 11
12 12 models = {
13 "gpt-4": {
14 "id": "gpt-4",
15 "name": "GPT-4",
16 "maxLength": 24000,
17 "tokenLimit": 8000,
18 },
19 "gpt-4-0613": {
20 "id": "gpt-4-0613",
21 "name": "GPT-4",
22 "maxLength": 32000,
23 "tokenLimit": 8000,
24 },
25 13 "gpt-3.5-turbo": {
26 14 "id": "gpt-3.5-turbo",
27 15 "name": "GPT-3.5-Turbo",
@@ -29,14 +17,8 @@ models = {
29 17 "tokenLimit": 14000,
30 18 "context": "16K",
31 19 },
32 "gpt-3.5-turbo-16k": {
33 "id": "gpt-3.5-turbo-16k",
34 "name": "GPT-3.5-16k",
35 "maxLength": 48000,
36 "tokenLimit": 16000,
37 },
38 "gpt-4-1106-preview": {
39 "id": "gpt-4-1106-preview",
20 "gpt-4-turbo-preview": {
21 "id": "gpt-4-turbo-preview",
40 22 "name": "GPT-4-Turbo",
41 23 "maxLength": 260000,
42 24 "tokenLimit": 126000,
@@ -49,6 +31,13 @@ models = {
49 31 "tokenLimit": 31000,
50 32 "context": "32K",
51 33 },
34 "gpt-4-0613": {
35 "id": "gpt-4-0613",
36 "name": "GPT-4-0613",
37 "maxLength": 60000,
38 "tokenLimit": 15000,
39 "context": "16K",
40 },
52 41 "gemini-pro": {
53 42 "id": "gemini-pro",
54 43 "name": "Gemini-Pro",
@@ -56,13 +45,34 @@ models = {
56 45 "tokenLimit": 30000,
57 46 "context": "32K",
58 47 },
59 "claude-2": {
60 "id": "claude-2",
61 "name": "Claude-2-200k",
48 "claude-3-opus-20240229": {
49 "id": "claude-3-opus-20240229",
50 "name": "Claude-3-Opus",
62 51 "maxLength": 800000,
63 52 "tokenLimit": 200000,
64 53 "context": "200K",
65 54 },
55 "claude-3-sonnet-20240229": {
56 "id": "claude-3-sonnet-20240229",
57 "name": "Claude-3-Sonnet",
58 "maxLength": 800000,
59 "tokenLimit": 200000,
60 "context": "200K",
61 },
62 "claude-2.1": {
63 "id": "claude-2.1",
64 "name": "Claude-2.1-200k",
65 "maxLength": 800000,
66 "tokenLimit": 200000,
67 "context": "200K",
68 },
69 "claude-2.0": {
70 "id": "claude-2.0",
71 "name": "Claude-2.0-100k",
72 "maxLength": 400000,
73 "tokenLimit": 100000,
74 "context": "100K",
75 },
66 76 "claude-instant-1": {
67 77 "id": "claude-instant-1",
68 78 "name": "Claude-instant-1",
@@ -72,6 +82,7 @@ models = {
72 82 }
73 83 }
74 84
85
75 86 class Liaobots(AsyncGeneratorProvider, ProviderModelMixin):
76 87 url = "https://liaobots.site"
77 88 working = True