mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-28 19:53:06 +08:00
## Summary - add the VolcEngine `models` URL suffix used by the existing Go `ListModels` implementation - return a clear error when the VolcEngine models suffix is missing - add focused VolcEngine model-listing regression tests ## What changed - Added `url_suffix.models` to `conf/models/volcengine.json`. - Normalized the configured models suffix before building the request URL. - Covered config loading, successful model listing, upstream errors, and missing suffix handling. ## Why `VolcEngine.ListModels` already builds requests from `URLSuffix.Models`, but the bundled VolcEngine config did not define that suffix. That left the model-listing path unable to call the documented `/models` endpoint from the existing provider config. Fixes #14701 Co-authored-by: Jin Hai <haijin.chn@gmail.com>
34 lines
648 B
JSON
34 lines
648 B
JSON
{
|
|
"name": "VolcEngine",
|
|
"url": {
|
|
"default": "https://ark.cn-beijing.volces.com/api/v3"
|
|
},
|
|
"url_suffix": {
|
|
"chat": "chat/completions",
|
|
"files": "files",
|
|
"embedding": "embeddings/multimodal",
|
|
"models": "models"
|
|
},
|
|
"class": "volcengine",
|
|
"models": [
|
|
{
|
|
"name": "doubao-seed-2-0-pro-260215",
|
|
"max_tokens": 262144,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"thinking": {
|
|
"default_value": true,
|
|
"clear_thinking": true
|
|
}
|
|
},
|
|
{
|
|
"name": "doubao-embedding-vision-251215",
|
|
"max_tokens": 131072,
|
|
"model_types": [
|
|
"embedding"
|
|
]
|
|
}
|
|
]
|
|
}
|