初始化

检查Rerank模型

Changed on

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

post/initialization/rerank/check

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/initialization/rerank/check
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

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

Changes