ChannelAdminService

POST /v1/admin/channels

Changed on

===== Channel =====

Request

Request body

apiKeystring
autoDisableJsonstring
baseUrlstring
costRatiostring

渠道成本倍率 decimal 字符串;空串=不配置(落 NULL)。非法值返回 400, reason=CHANNEL_COST_RATIO_INVALID。仅审计不计费。

extraConfigJsonstring
forwardCancelSignalboolean

默认 false:客户端断开后,非流式及流式首字节前继续执行到完成或渠道超时。

headerOverrideJsonstring

覆盖三件套:与 ChannelInfo 同义;空串 = 未配置。写入前 biz 侧校验,不允许覆盖 stream 键。

headerStripJsonstring

header_strip_json 请求头剔除 JSON (对齐 ChannelInfo.header_strip_json)。

modelMappingJsonstring
namestring
paramOverrideJsonstring
passthroughBodyboolean
priorityinteger
regionstring
remarkstring
responsesWebsocketEnabledboolean

默认关闭;上游须支持原生 Responses WebSocket。

retryJsonstring
timeoutMsinteger
typestring
vendorIdstring

Response

OK

Changes

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status