跳转到主要内容
PATCH
PATCH /admin/api/provider-models/{id}

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

路径参数

id
string
必填

请求体

application/json
enabled
boolean | null
metadata
any
modelId
string | null
providerId
string | null
upstreamName
string | null

响应

Success

enabled
boolean
必填
id
string
必填
metadata
any
必填
modelId
string | null
必填
providerId
string
必填
upstreamName
string
必填

The name this provider's upstream answers to, not the public one.

hasPrice
boolean | null

A saved enabled provider or global price rule matches; populated by reads.

priceRules
object[] | null

Saved, enabled rules matching this model, in billing precedence order.