修改模型服务
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| GwClusterId |
string |
是 |
网关实例 ID。 |
pg-xxxxxxxxxx |
| Name |
string |
是 |
模型服务名称 |
testName |
| ModelCategory |
string |
是 |
模型类别 |
text |
| Protocol |
string |
是 |
协议类型,枚举值:
|
openai |
| BaseUrl |
string |
否 |
上游服务地址 |
https://dashscope.aliyuncs.com/compatible-mode/v1 |
| ApiKey |
string |
否 |
模型服务的 API 密钥 |
xxx |
| InputCostPointsPerMillion |
string |
否 |
输入点数 |
10 |
| OutputCostPointsPerMillion |
string |
否 |
输出点数 |
10 |
| RequestCostPoints |
string |
否 |
请求数 |
10 |
| ModelServiceId |
string |
是 |
模型服务 ID |
ms-xxxxxx |
| RegionId |
string |
否 |
地域 ID。 |
cn-beijing |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
6A2EE5B4-CC9F-46E1-A747-E43BC9****** |
| ModelServiceId |
string |
模型服务 ID。 |
ms-xxxxxx |
| Status |
string |
模型服务状态。 |
Enable |
示例
正常返回示例
JSON格式
{
"RequestId": "6A2EE5B4-CC9F-46E1-A747-E43BC9******",
"ModelServiceId": "ms-xxxxxx",
"Status": "Enable"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。