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. Nilai valid:
|
text |
| PathPrefix |
string |
Yes |
Awalan jalur API. |
/test |
| Protocol |
string |
Yes |
Protokol. Nilai valid:
|
openai |
| RecordInput |
string |
No |
Jumlah poin input. |
10 |
| RecordOutput |
string |
No |
Jumlah poin output. |
10 |
| RouteRules |
string |
Yes |
Daftar aturan perutean (array string JSON). |
[ { "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": "[]" } ] } ] |
| Config |
string |
No |
Konfigurasi percobaan ulang gerbang. |
{ "failover": { "enabled": true, "max_provider_retries": 2, "max_failover_providers": 1, "retryable_status_codes": [429, 500, 502, 503, 504], "retry_delay": 0.5 } } |
| RegionId |
string |
No |
ID wilayah. |
cn-beijing |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| RequestId |
string |
ID permintaan. |
925B84D9-CA72-432C-95CF-738C22****** |
| ModelApiId |
string |
ID API model. |
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.