Skip to main content
PATCH
更新私有模型
需要 private_models:write 权限以及所有者或管理员身份。提交 slug 可重命名工作区内的模型;不能直接提供 model_id。

授权

Authorization
string
header
必填

Bearer 令牌身份验证

路径参数

id
string<uuid>
必填

请求体

application/json
model_reference
string

用于将此端点作为提供商关联的精确目录模型ID,或用于自动匹配/工作区命名空间的短标识。

name
string
Required string length: 1 - 120
description
string | null
Maximum string length: 500
base_url
string<uri>
upstream_model_id
string
Required string length: 1 - 255
credential
string
write-only
Minimum string length: 8
supports_responses
boolean
enabled
boolean
context_length
integer | null
必填范围: x >= 1
max_output_tokens
integer | null
必填范围: x >= 1
host_provider_id
string | null
custom_provider_name
string | null
Required string length: 1 - 120
custom_provider_url
string<uri> | null
routing_policy
enum<string>
可用选项:
preferred,
balanced,
fallback

响应

私有模型已更新

data
object
必填
最后修改于 2026年10月2日