初始化
测试Embedding模型
测试Embedding接口是否可用并返回向量维度
post/initialization/embedding/test
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