{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"additionalProperties": false,
"required": [
"channel",
"setting",
"settings",
"header_names",
"param_override_present"
],
"properties": {
"channel": {
"type": "object",
"description": "Safe channel summary and validated configuration. Credentials and raw opaque fields are omitted.",
"properties": {
"id": {
"type": "integer"
},
"type": {
"type": "integer"
},
"name": {
"type": "string"
},
"status": {
"type": "integer"
},
"models": {
"type": "string"
},
"group": {
"type": "string"
},
"weight": {
"type": "integer"
},
"priority": {
"type": "integer"
},
"auto_ban": {
"type": "integer"
},
"tag": {
"type": [
"string",
"null"
]
},
"remark": {
"type": [
"string",
"null"
]
},
"test_model": {
"type": [
"string",
"null"
]
},
"openai_organization": {
"type": [
"string",
"null"
]
},
"base_url": {
"type": "string"
},
"model_mapping": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"status_code_mapping": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"channel_info": {
"type": "object",
"properties": {
"is_multi_key": {
"type": "boolean"
},
"multi_key_size": {
"type": "integer"
},
"multi_key_mode": {
"type": "string"
}
}
},
"created_time": {
"type": "number"
},
"test_time": {
"type": "number"
},
"response_time": {
"type": "number"
},
"balance": {
"type": "number"
},
"balance_updated_time": {
"type": "number"
},
"used_quota": {
"type": "number"
}
}
},
"setting": {
"type": "object",
"additionalProperties": false,
"properties": {
"pass_through_body_enabled": {
"type": "boolean"
},
"responses_websocket_enabled": {
"type": "boolean"
},
"task_plugin_key": {
"type": "string"
},
"task_extend_plugin_keys": {
"type": "array",
"maxItems": 512,
"uniqueItems": true,
"items": {
"type": "string"
}
}
}
},
"settings": {
"type": "object",
"additionalProperties": false,
"properties": {
"upstream_model_update_check_enabled": {
"type": "boolean"
},
"upstream_model_update_auto_sync_enabled": {
"type": "boolean"
}
}
},
"header_names": {
"type": "array",
"items": {
"type": "string"
}
},
"param_override_present": {
"type": "boolean"
}
},
"description": "Safe projection; unknown settings and credential values are not returned. Reads and merges have no cross-instance compare-and-swap."
}
}
}
}
}
}