Add support for VolcEngine - the current version supports SDK2 (#885)

- The main idea is to assemble **ak**, **sk**, and **ep_id** into a
dictionary and store it in the database **api_key** field
- I don’t know much about the front-end, so I learned from Ollama, which
may be redundant.

### Configuration method

- model name

- Format requirements: {"VolcEngine model name":"endpoint_id"}
    - For example: {"Skylark-pro-32K":"ep-xxxxxxxxx"}
    
- Volcano ACCESS_KEY
- Format requirements: VOLC_ACCESSKEY of the volcano engine
corresponding to the model

- Volcano SECRET_KEY
- Format requirements: VOLC_SECRETKEY of the volcano engine
corresponding to the model
    
### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
yungongzi
2024-05-23 11:15:29 +08:00
committed by GitHub
parent fbd0d74053
commit eb51ad73d6
10 changed files with 315 additions and 8 deletions

View File

@@ -477,6 +477,11 @@ The above is the content you need to summarize.`,
baseUrlNameMessage: 'Please input your base url!',
vision: 'Does it support Vision?',
ollamaLink: 'How to integrate {{name}}',
volcModelNameMessage: 'Please input your model name! Format: {"ModelName":"EndpointID"}',
addVolcEngineAK: 'VOLC ACCESS_KEY',
volcAKMessage: 'Please input your VOLC_ACCESS_KEY',
addVolcEngineSK: 'VOLC SECRET_KEY',
volcSKMessage: 'Please input your SECRET_KEY',
},
message: {
registered: 'Registered!',

View File

@@ -440,7 +440,12 @@ export default {
modelNameMessage: '請輸入模型名稱!',
modelTypeMessage: '請輸入模型類型!',
baseUrlNameMessage: '請輸入基礎 Url',
ollamaLink: '如何集成Ollama',
ollamaLink: '如何集成 {{name}}',
volcModelNameMessage: '請輸入模型名稱!格式:{"模型名稱":"EndpointID"}',
addVolcEngineAK: '火山 ACCESS_KEY',
volcAKMessage: '請輸入VOLC_ACCESS_KEY',
addVolcEngineSK: '火山 SECRET_KEY',
volcSKMessage: '請輸入VOLC_SECRET_KEY',
},
message: {
registered: '註冊成功',

View File

@@ -458,6 +458,11 @@ export default {
modelTypeMessage: '请输入模型类型!',
baseUrlNameMessage: '请输入基础 Url',
ollamaLink: '如何集成 {{name}}',
volcModelNameMessage: '请输入模型名称!格式:{"模型名称":"EndpointID"}',
addVolcEngineAK: '火山 ACCESS_KEY',
volcAKMessage: '请输入VOLC_ACCESS_KEY',
addVolcEngineSK: '火山 SECRET_KEY',
volcSKMessage: '请输入VOLC_SECRET_KEY',
},
message: {
registered: '注册成功',