跳转到主要内容
POST
POST /admin/api/models/discover

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

请求体

application/json

The two arguments discover_models takes. It is a request shape rather than a DTO because the sdk's own signature is two arguments — there is nothing to mirror.

providerId
string
必填
credentialId
string | null

响应

Success

hasDefaultPrice
boolean
必填

Whether the bundled catalog can price it without an operator writing a rule by hand.

known
boolean
必填

Whether this provider already has a provider_models row for it.

metadata
any
必填
upstreamName
string
必填
hasPrice
boolean | null

A saved provider or global rule matches this upstream model.