Skip to content

Commit 0ac5d62

Browse files
authored
add llm: ernie-character-8k of wenxin (langgenius#4448)
1 parent bdd4099 commit 0ac5d62

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
model: ernie-character-8k-0321
2+
label:
3+
en_US: ERNIE-Character-8K-0321
4+
model_type: llm
5+
features:
6+
- agent-thought
7+
model_properties:
8+
mode: chat
9+
context_size: 8192
10+
parameter_rules:
11+
- name: temperature
12+
use_template: temperature
13+
min: 0.1
14+
max: 1.0
15+
default: 0.95
16+
- name: top_p
17+
use_template: top_p
18+
min: 0
19+
max: 1.0
20+
default: 0.7
21+
- name: max_tokens
22+
use_template: max_tokens
23+
default: 1024
24+
min: 2
25+
max: 1024
26+
- name: presence_penalty
27+
use_template: presence_penalty
28+
default: 1.0
29+
min: 1.0
30+
max: 2.0

api/core/model_runtime/model_providers/wenxin/llm/ernie_bot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ class ErnieBotModel:
135135
'ernie-speed-appbuilder': 'https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ai_apaas',
136136
'ernie-lite-8k-0922': 'https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/eb-instant',
137137
'ernie-lite-8k-0308': 'https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-lite-8k',
138+
'ernie-character-8k-0321': 'https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-char-8k',
138139
}
139140

140141
function_calling_supports = [

0 commit comments

Comments
 (0)