Mengubah layanan model.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GwClusterId |
string |
Yes |
ID instans gerbang. |
pg-xxxxxxxxxx |
| Name |
string |
Yes |
Nama layanan model. |
testName |
| ModelCategory |
string |
Yes |
Kategori model. |
text |
| Protocol |
string |
Yes |
Jenis protokol. Nilai valid:
|
openai |
| BaseUrl |
string |
No |
Alamat layanan upstream. |
https://dashscope.aliyuncs.com/compatible-mode/v1 |
| ApiKey |
string |
No |
Kunci API untuk layanan model. |
xxx |
| InputCostPointsPerMillion |
string |
No |
Biaya dalam poin per juta token input. |
10 |
| OutputCostPointsPerMillion |
string |
No |
Biaya dalam poin per juta token output. |
10 |
| RequestCostPoints |
string |
No |
Biaya dalam poin per permintaan. |
10 |
| ModelServiceId |
string |
Yes |
ID layanan model. |
ms-xxxxxx |
| RegionId |
string |
No |
ID Wilayah. |
cn-beijing |
Elemen respons
|
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 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6A2EE5B4-CC9F-46E1-A747-E43BC9******",
"ModelServiceId": "ms-xxxxxx",
"Status": "Enable"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.