Skip to content

Commit

Permalink
feat: support moonshot and glm base models for volcengine provider (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sinomoe authored Jul 6, 2024
1 parent f0b7051 commit 85744b7
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,71 @@
'mode': 'chat',
},
'features': [],
},
'Moonshot-v1-8k': {
'req_params': {
'max_prompt_tokens': 8192,
'max_new_tokens': 4096,
},
'model_properties': {
'context_size': 8192,
'mode': 'chat',
},
'features': [],
},
'Moonshot-v1-32k': {
'req_params': {
'max_prompt_tokens': 32768,
'max_new_tokens': 16384,
},
'model_properties': {
'context_size': 32768,
'mode': 'chat',
},
'features': [],
},
'Moonshot-v1-128k': {
'req_params': {
'max_prompt_tokens': 131072,
'max_new_tokens': 65536,
},
'model_properties': {
'context_size': 131072,
'mode': 'chat',
},
'features': [],
},
'GLM3-130B': {
'req_params': {
'max_prompt_tokens': 8192,
'max_new_tokens': 4096,
},
'model_properties': {
'context_size': 8192,
'mode': 'chat',
},
'features': [],
},
'GLM3-130B-Fin': {
'req_params': {
'max_prompt_tokens': 8192,
'max_new_tokens': 4096,
},
'model_properties': {
'context_size': 8192,
'mode': 'chat',
},
'features': [],
},
'Mistral-7B': {
'req_params': {
'max_prompt_tokens': 8192,
'max_new_tokens': 2048,
},
'model_properties': {
'context_size': 8192,
'mode': 'chat',
},
'features': [],
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ model_credential_schema:
show_on:
- variable: __model_type
value: llm
- label:
en_US: Skylark2-pro-4k
value: Skylark2-pro-4k
show_on:
- variable: __model_type
value: llm
- label:
en_US: Llama3-8B
value: Llama3-8B
Expand All @@ -138,6 +132,42 @@ model_credential_schema:
show_on:
- variable: __model_type
value: llm
- label:
en_US: Moonshot-v1-8k
value: Moonshot-v1-8k
show_on:
- variable: __model_type
value: llm
- label:
en_US: Moonshot-v1-32k
value: Moonshot-v1-32k
show_on:
- variable: __model_type
value: llm
- label:
en_US: Moonshot-v1-128k
value: Moonshot-v1-128k
show_on:
- variable: __model_type
value: llm
- label:
en_US: GLM3-130B
value: GLM3-130B
show_on:
- variable: __model_type
value: llm
- label:
en_US: GLM3-130B-Fin
value: GLM3-130B-Fin
show_on:
- variable: __model_type
value: llm
- label:
en_US: Mistral-7B
value: Mistral-7B
show_on:
- variable: __model_type
value: llm
- label:
en_US: Doubao-embedding
value: Doubao-embedding
Expand Down Expand Up @@ -181,7 +211,7 @@ model_credential_schema:
zh_Hans: 模型上下文长度
en_US: Model Context Size
type: text-input
default: '4096'
default: "4096"
placeholder:
zh_Hans: 输入您的模型上下文长度
en_US: Enter your Model Context Size
Expand All @@ -195,7 +225,7 @@ model_credential_schema:
label:
zh_Hans: 最大 token 上限
en_US: Upper Bound for Max Tokens
default: '4096'
default: "4096"
type: text-input
placeholder:
zh_Hans: 输入您的模型最大 token 上限
Expand Down

0 comments on commit 85744b7

Please sign in to comment.