模型管理

修改模型显示信息

Changed on

只修改显示名称和描述;接入配置与凭据保持不变。

patch/models/{id}

Request

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

Path parameters

idstring required

模型ID

Request body

descriptionstring

新的描述

display_namestring

新的显示名称,空字符串表示改回使用模型名

Response

更新后的模型

successboolean

Example response

{
  "success": true
}

Changes