ragflow/api/db
yungongzi eb51ad73d6
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)
2024-05-23 11:15:29 +08:00
..
services Add api/list_kb_docs function and modify api/list_chunks (#874) 2024-05-22 14:58:56 +08:00
__init__.py let file in knowledgebases visible in file manager (#714) 2024-05-11 16:04:28 +08:00
db_models.py Update db_models.py 2024-05-21 12:02:22 +08:00
db_utils.py apply pep8 formalize (#155) 2024-03-27 11:33:46 +08:00
init_data.py Add support for VolcEngine - the current version supports SDK2 (#885) 2024-05-23 11:15:29 +08:00
operatioins.py apply pep8 formalize (#155) 2024-03-27 11:33:46 +08:00
reload_config_base.py apply pep8 formalize (#155) 2024-03-27 11:33:46 +08:00
runtime_config.py apply pep8 formalize (#155) 2024-03-27 11:33:46 +08:00