Membuat layanan aplikasi untuk mendapatkan kemampuan Inferensi model Tingkat Tinggi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:CreateAppService |
create |
*All Resource
|
None | None |
Sintaks permintaan
POST /api/v2/app_services HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
No |
ID ruang kerja. |
12**** |
| QuotaId |
string |
No |
ID Kuota. |
abcdef |
| body |
object |
No |
Badan permintaan. |
|
| ServiceName |
string |
Yes |
The service name. |
foo |
| AppType |
string |
Yes |
The application service type. Valid values:
Valid values:
|
LLM |
| AppVersion |
string |
No |
The application version. |
v1 |
| ServiceSpec |
string |
Yes |
The service specifications. Valid values:
|
llama_7b_fp16 |
| Replicas |
integer |
Yes |
The number of instances. |
1 |
| Config |
object |
No |
The additional configurations that are required for service deployment. |
|
|
any |
No |
The application information such as model mounting. Object Storage Service (OSS) mounting and File Storage NAS (NAS) mounting are supported.
|
{ "ModelStorage": "oss", "OssPath": "oss://examplebucket/xxxx/" } |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| ServiceId |
string |
The service ID. |
eas-m-aaxxxddf |
| ServiceName |
string |
The service name. |
foo |
| Status |
string |
The service state. |
Creating |
| Region |
string |
The region ID of the service. |
cn-shanghai |
| InternetEndpoint |
string |
The public endpoint of the service. |
http://pai-eas.cn-shanghai.**** |
| IntranetEndpoint |
string |
The internal endpoint of the service. |
http://pai-eas-vpc.cn-shanghai.**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"ServiceId": "eas-m-aaxxxddf",
"ServiceName": "foo",
"Status": "Creating",
"Region": "cn-shanghai",
"InternetEndpoint": "http://pai-eas.cn-shanghai.****",
"IntranetEndpoint": "http://pai-eas-vpc.cn-shanghai.****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.