Modifies a model service.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GwClusterId |
string |
Yes |
The ID of the gateway instance. |
pg-xxxxxxxxxx |
| Name |
string |
Yes |
The name of the model service. |
testName |
| ModelCategory |
string |
Yes |
The model category. |
text |
| Protocol |
string |
Yes |
The protocol type. Valid values:
|
openai |
| BaseUrl |
string |
No |
The address of the upstream service. |
https://dashscope.aliyuncs.com/compatible-mode/v1 |
| ApiKey |
string |
No |
The API key for the model service. |
xxx |
| InputCostPointsPerMillion |
string |
No |
The cost in points per million input tokens. |
10 |
| OutputCostPointsPerMillion |
string |
No |
The cost in points per million output tokens. |
10 |
| RequestCostPoints |
string |
No |
The cost in points per request. |
10 |
| ModelServiceId |
string |
Yes |
The ID of the model service. |
ms-xxxxxx |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
6A2EE5B4-CC9F-46E1-A747-E43BC9****** |
| ModelServiceId |
string |
The ID of the model service. |
ms-xxxxxx |
| Status |
string |
The status of the model service. |
Enable |
Examples
Success response
JSON format
{
"RequestId": "6A2EE5B4-CC9F-46E1-A747-E43BC9******",
"ModelServiceId": "ms-xxxxxx",
"Status": "Enable"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.