Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add qianfan models #337

Merged
merged 9 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions erniebot/src/erniebot/intro.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def list() -> List[Tuple[str, str]]:
("ernie-turbo", "文心大模型(ernie-turbo)"),
("ernie-4.0", "文心大模型(ernie-4.0)"),
("ernie-longtext", "文心大模型(ernie-longtext)"),
("ernie_speed", " 文心大模型(ernie_speed)"),
("ernie-speed-128k", " 文心大模型(ernie-speed-128k)"),
("ernie-tiny-8k", " 文心大模型(ernie-tiny-8k)"),
("ernie-char-8k", " 文心大模型(ernie-char-8k)"),
("ernie-text-embedding", "文心百中语义模型"),
("ernie-vilg-v2", "文心一格模型"),
]
23 changes: 22 additions & 1 deletion erniebot/src/erniebot/resources/chat_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,18 @@ class ChatCompletion(EBResource, CreatableWithStreaming):
"ernie-longtext": {
"model_id": "ernie_bot_8k",
},
"ernie-speed": {
"ernie_speed": {
wj-Mcat marked this conversation as resolved.
Show resolved Hide resolved
"model_id": "ernie_speed",
},
"ernie-speed-128k": {
"model_id": "ernie-speed-128k",
},
"ernie-tiny-8k": {
"model_id": "ernie-tiny-8k",
},
"ernie-char-8k": {
"model_id": "ernie-char-8k",
},
},
},
APIType.AISTUDIO: {
Expand All @@ -84,6 +93,18 @@ class ChatCompletion(EBResource, CreatableWithStreaming):
"ernie-longtext": {
"model_id": "ernie_bot_8k",
},
"ernie_speed": {
"model_id": "ernie_speed",
},
"ernie-speed-128k": {
"model_id": "ernie-speed-128k",
},
"ernie-tiny-8k": {
"model_id": "ernie-tiny-8k",
},
"ernie-char-8k": {
"model_id": "ernie-char-8k",
},
},
},
APIType.CUSTOM: {
Expand Down
Loading