feat: provider add baichuan (#1298)

This commit is contained in:
zxhlyh
2023-10-10 12:10:43 +08:00
committed by GitHub
parent 4ab4bcc074
commit df07fb5951
25 changed files with 435 additions and 0 deletions

View File

@@ -56,6 +56,31 @@ const config: ProviderConfig = {
'server_url',
],
fields: [
{
type: 'radio',
key: 'model_type',
required: true,
label: {
'en': 'Model Type',
'zh-Hans': '模型类型',
},
options: [
{
key: 'text-generation',
label: {
'en': 'Text Generation',
'zh-Hans': '文本生成',
},
},
{
key: 'embeddings',
label: {
'en': 'Embeddings',
'zh-Hans': 'Embeddings',
},
},
],
},
{
type: 'text',
key: 'model_name',