Skip to main content
POST
创建私有模型
需要 private_models:write 权限以及所有者或管理员身份。将 model_reference 设置为目录中的精确模型 ID 或工作区内的短标识。Phaseo 会分配最终模型 ID;credential 会被加密且仅可写入。

授权

Authorization
string
header
必填

Bearer 令牌身份验证

请求体

application/json
model_reference
string
必填

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

name
string
必填
Required string length: 1 - 120
base_url
string<uri>
必填
upstream_model_id
string
必填
Required string length: 1 - 255
credential
string
必填
write-only
Minimum string length: 8
description
string
Maximum string length: 500
supports_responses
boolean
默认值:false
enabled
boolean
默认值:true
context_length
integer | null
必填范围: x >= 1
max_output_tokens
integer | null
必填范围: x >= 1
host_provider_id
string | null

运营此部署的现有Phaseo提供商。

custom_provider_name
string | null
Required string length: 1 - 120
custom_provider_url
string<uri> | null
routing_policy
enum<string>
默认值:preferred
可用选项:
preferred,
balanced,
fallback

响应

私有模型已创建

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