模型管理

更新模型配置信息

put/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
namestring
source'local' | 'remote' | 'aliyun' | 'zhipu' | 'volcengine' | 'deepseek' | 'hunyuan' | 'minimax' | 'openai' | 'gemini' | 'mimo' | 'siliconflow' | 'jina' | 'openrouter' | 'litellm' | 'requesty' | 'nvidia' | 'novita' | 'azure_openai'
type'Embedding' | 'Rerank' | 'KnowledgeQA' | 'VLLM' | 'ASR'

Response

更新后的模型

successboolean

Example response

{
  "success": true
}

Changes