CreateModelProviderTemplate
Creates a model creation provider template.
Operation description
You can create a model creation provider template under the model templates in the Wuying Agent Management Center to configure the connection information and keys for model services (such as Alibaba Cloud Bailian, Token Plan, and Moonshot) that agents can invoke. The created model provider template is automatically associated with the specified model template. Make sure that you are fully familiar with the operations and usage of the Wuying Agent Management Center before you use this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:CreateModelProviderTemplate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BizType |
integer |
Yes |
The business type, which is used to identify the business to which the model provider template belongs. Set this parameter to Valid values:
|
1 |
| AgentPlatform |
string |
No |
The business platform to which the agent belongs. This value must be consistent with the target model group. If this parameter is not provided or an unrecognized value is passed, Valid values:
The platform identifier does not automatically supplement the configuration capabilities or system templates for the corresponding agent. Valid values:
|
ENTERPRISE |
| AgentProvider |
string |
Yes |
The agent type, which must be consistent with the target model group. When you create a custom or managed model connection configuration, the following types are supported:
The provider configuration for Valid values:
|
OpenClaw |
| ModelTemplateId |
string |
Yes |
The ID of the associated model group. |
mt-xxxx |
| ProviderName |
string |
Yes |
The name of the model provider. The name must be unique within the same model group.
Whether the provider can be created also depends on whether the corresponding service endpoint and business configuration are available. |
bailian |
| ProviderType |
string |
No |
The access type of the model provider. We recommend that you explicitly pass this parameter. The value is case-sensitive.
Valid values:
|
Managed |
| Name |
string |
No |
The name of the model provider template. |
Alibaba Cloud Bailian |
| Description |
string |
No |
The description of the model provider template. |
Alibaba Cloud Bailian provider |
| Config |
string |
Yes |
The connection configuration of the model provider, passed as a JSON string. When
Do not mix the two field formats. The key is encrypted and saved after creation. When Endpoint and key verification
Other supported managed providers do not perform the preceding |
{ "api": "openai-completions", "apiKey": "sk-xxxx", "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1" } |
| EnableWuyingProxy |
boolean |
No |
Specifies whether to enable the Wuying secure proxy.
When When Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request result. |
||
| Data |
object |
The returned result object. |
|
| ProviderTemplateId |
string |
The ID of the model provider template. |
mpt-xxxx |
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"Data": {
"ProviderTemplateId": "mpt-xxxx"
},
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.