Mengubah API 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 |
| ModelApiId |
string |
Yes |
ID API model. |
mi-xxxxx |
| ModelCategory |
string |
Yes |
Kategori model. Nilai valid:
|
text |
| PathPrefix |
string |
Yes |
Awalan jalur API. |
/test |
| Protocol |
string |
Yes |
Protokol. Nilai valid:
|
openai |
| RecordInput |
string |
No |
Jumlah unit input. |
10 |
| RecordOutput |
string |
No |
Jumlah unit output. |
10 |
| RouteRules |
string |
Yes |
Array JSON aturan perutean, disediakan sebagai string. |
[ { "RuleName": "string", "FallbackMode": "failover", "MatchModelListJson": "[]", "providerBalancerAlgorithm": "round-robin", "Providers": [ { "ModelServiceName": "string", "Weight": "0", "model_protocol": "vllm" "ModelList": "[]" } ], "FallbackProviders": [ { "ModelServiceName": "string", "model_protocol": "anthropic", "Weight": "10", "ModelList": "[]" } ] } ] |
| RegionId |
string |
No |
ID wilayah. |
cn-beijing |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
925B84D9-CA72-432C-95CF-738C22****** |
| ModelApiId |
string |
The model API ID. |
mi-xxxxx |
Contoh
Respons sukses
JSONformat
{
"RequestId": "925B84D9-CA72-432C-95CF-738C22******",
"ModelApiId": "mi-xxxxx"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.