|
名稱 |
類型 |
描述 |
樣本值 |
|---|---|---|---|
|
object |
AI API 相關配置。 |
||
| environmentId |
string |
環境 ID。 |
env-xxx |
| backendScene |
string |
發布情境。 |
SingleService |
| autoDeploy |
boolean |
是否自動部署。 |
true |
| gatewayId |
string |
網關執行個體 ID。 |
gw-xx |
| routeBackend | Backend |
後端服務資訊。 |
|
| gatewayInfo | GatewayInfo |
網關資訊。 |
|
| mock | HttpApiMockContract |
Mock 配置。 |
|
| gatewayType |
string |
網關類型 |
API |
| customDomainIds |
array |
使用者自訂網域名 ID 列表。 |
|
|
string |
網域名稱 ID。 |
d-xxx |
|
| serviceConfigs |
array |
服務配置列表。 |
|
|
object |
已有服務配置。 |
||
| serviceId |
string |
服務 ID。 |
svc-xxx |
| weight |
integer |
服務權重。 |
100 |
| modelNamePattern |
string |
模型名稱匹配規則 |
qwen-* |
| modelName |
string |
模型名稱 |
qwen-max |
| intentCode |
string |
意圖編碼 |
INQUIRY |
| match | HttpApiBackendMatchConditions |
匹配條件。 |
|
| port |
integer |
服務連接埠號碼 |
80 |
| protocol |
string |
服務合約(HTTP/HTTPS) |
HTTP |
| gatewayServiceId |
string |
網關服務 ID |
gw-svc-abc123 |
| name |
string |
服務顯示名稱 |
Qwen-Max-Service |
| version |
string |
服務版本標籤 |
V2 |
| multiServiceRouteStrategy |
string |
多服務路由策略類型 |
ByWeight |
| observabilityRouteConfig |
object |
觀測指標路由配置 |
|
| mode |
string |
路由模式 |
LeastBusy |
| rateLimit |
number |
單個服務最大流量佔比 |
0.8 |
| queueSize |
integer |
隊列大小 |
100 |
| policyConfigs |
array |
策略配置列表。 |
|
|
object |
策略配置列表。 |
||
| type |
string |
策略類型。 |
AiFallback |
| enable |
boolean |
是否啟用。 |
true |
| aiFallbackConfig |
object |
AiFallback 策略配置 |
|
| serviceConfigs |
array |
服務配置列表 |
|
|
object |
服務配置列表。 |
||
| serviceId |
string |
服務 id |
svc-****** |
| targetModelName |
string |
目標模型名稱 |
gpt-4/llama3-70b |
| aiSecurityGuardConfig |
object |
迴圈規則。 |
|
| serviceAddress |
string |
服務地址,用於指定後端服務的網路位置 |
https://api.example.com/v1 |
| checkRequest |
boolean |
是否啟用請求校正 |
true |
| checkResponse |
boolean |
是否啟用響應校正 |
true |
| checkRequestImage |
boolean |
是否啟用請求中的映像內容校正 |
true |
| checkResponseImage |
boolean |
是否啟用響應中的映像內容校正 |
true |
| requestCheckService |
string |
用於請求校正的外部服務地址或配置 |
https://checker.example.com/validate-request |
| responseCheckService |
string |
用於響應校正的外部服務地址或配置 |
https://checker.example.com/validate-response |
| requestImageCheckService |
string |
用於請求中映像內容校正的外部服務地址或配置 |
https://image-checker.example.com/scan |
| responseImageCheckService |
string |
用於響應中映像內容校正的外部服務地址或配置 |
https://image-checker.example.com/scan-response |
| riskAlertLevel |
string |
風險警示層級,用於標識內容或行為的風險等級 |
low/medium/high |
| riskConfig |
array |
迴圈規則。 |
|
|
object |
迴圈規則。 |
||
| type |
string |
策略類型。 |
K8S |
| level |
string |
衝突等級,類型 string。取值:
|
Critical |
| consumerRules |
object |
迴圈規則。 |
|
| pattern |
string |
當 type=relativeMonthly 時,用於指定每月第幾周:
|
first |
| matchType |
string |
查詢匹配類型
|
term |
| bufferLimit |
integer |
緩衝區大小上限(位元組) |
50 |
| consumerRequestCheckService |
array |
消費者請求校正服務 |
|
|
object |
|||
| name |
string |
名稱 |
API |
| requestCheckService |
string |
請求校正服務 |
https://checker.example.com/validate |
| requestImageCheckService |
string |
請求映像校正服務 |
https://image-check.example.com/scan |
| matchType |
string |
匹配類型 |
exact/prefix |
| modalityType |
string |
模態類型 |
text/image |
| consumerResponseCheckService |
array |
消費者響應校正服務 |
|
|
object |
|||
| name |
string |
名稱 |
AI_API |
| responseCheckService |
string |
響應校正服務 |
https://checker.example.com/validate-response |
| responseImageCheckService |
string |
響應映像校正服務 |
https://image-check.example.com/scan-response |
| matchType |
string |
查詢匹配類型
|
term |
| modalityType |
string |
模態類型 |
text/image |
| consumerRiskLevel |
array |
消費者風險等級 |
|
|
object |
|||
| name |
string |
參數名稱 |
APIG-UI |
| matchType |
string |
查詢匹配類型
|
term |
| type |
string |
後端服務情境:
|
K8S |
| level |
string |
衝突等級,類型 string。取值:
|
Critical |
| aiTokenRateLimitConfig |
object |
AI 令牌速率限制配置 |
|
| rules |
array |
校正或處理規則列表 |
|
|
object |
校正或處理規則列表 |
||
| limitType |
string |
限流類型 |
request/token |
| matchKey |
string |
匹配鍵 |
user_id/api_path |
| matchType |
string |
查詢匹配類型
|
term |
| matchValue |
string |
匹配值 |
user123 |
| limitMode |
string |
限流模式 |
local |
| limitValue |
integer |
限流值 |
100 |
| globalRules |
array |
全域規則 |
|
|
object |
全域規則 |
||
| limitType |
string |
限流類型 |
request |
| matchKey |
string |
匹配鍵 |
user_id |
| matchType |
string |
查詢匹配類型
|
term |
| matchValue |
string |
匹配值 |
user123 |
| limitMode |
string |
限流模式 |
local |
| limitValue |
integer |
限流值 |
100 |
| enableGlobalRules |
boolean |
是否啟用全域規則 |
true |
| aiStatisticsConfig |
object |
||
| logRequestContent |
boolean |
||
| logResponseContent |
boolean |
||
| customDomainInfos |
array |
使用者自訂網域名內容列表。 |
|
|
object |
使用者自訂網域名內容列表。 |
||
| domainId |
string |
網域名稱 ID。 |
d-cshee6dlhtgk****** |
| name |
string |
網域名稱名稱。 |
hello-server.com |
| protocol |
string |
協議。 |
HTTP |
| subDomains |
array |
次層網域內容列表。 |
|
|
object |
網路類型。 |
||
| domainId |
string |
網域名稱 ID。 |
d-csmn42um****** |
| name |
string |
網域名稱名稱。 |
test |
| protocol |
string |
協議。 |
HTTP |
| networkType |
string |
網路類型。 |
Intranet |