v44

latestSwagger 2.0raw.githubusercontent.com2026-08-01304236810.6 KB
初始化

检查Rerank模型

检查Rerank模型连接和功能是否正常

post/initialization/rerank/check

Request body

apiKeystring
appSecretstring

AppSecret 用于 LKEAP / Volcengine Rerank 等需要第二段密钥的场景(对应模型 Parameters.AppSecret)。

baseUrlstring
customHeadersobject
dimensioninteger
extraConfigobject
interfaceTypestring
modelIdstring

ModelID, when set, instructs the handler to substitute any missing secrets (APIKey, AppSecret via ExtraConfig) from the stored model record before assembling the test client. This lets the "Test connection" button work on existing models without making the frontend reload — and ship — the plaintext API key. Other fields (BaseURL, ModelName, etc.) on this request still override the stored values, so a user can validate a new endpoint against the existing credentials in one click.

modelNamestring required
providerstring
sourcestring

为空时按需默认为 "remote"

supportsDimensionOverrideboolean

Response

检查结果

object required