Updates a model provider template.
Operation description
You can update a model provider template that has been created in the Wuying Agent Management Center, including the template name, description, model service connection configuration, and Wuying security proxy switch. Partial field updates are supported. You only need to pass in the fields that you want to modify.
Before you call this operation, make sure that you are familiar with the operations and usage of the Wuying Agent Management Center.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProviderTemplateId |
string |
Yes |
The ID of the model provider template. |
mpt-xxxx |
| Name |
string |
No |
The name of the model provider template. |
阿里云百炼 |
| Description |
string |
No |
The description of the model provider template. |
阿里云百炼服务商 |
| Config |
object |
No |
The model provider configuration. |
|
| BaseUrl |
string |
No |
The base URL of the model service API. |
https://dashscope.aliyuncs.com/compatible-mode/v1 |
| ApiKey |
string |
No |
The API key of the model service, which is used for authentication. The key is encrypted after it is created. |
sk-xxxxxxxxxxxxxxxxxxxx |
| ApiType |
string |
No |
The API protocol type. |
openai-completions |
| EnableWuyingProxy |
boolean |
No |
Specifies whether to enable the Wuying security gateway proxy. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.