|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
body |
||
| type |
string |
策略模板类型。 |
K8S |
| enable |
boolean |
是否启用。 |
false |
| semanticRouterConfig |
object |
语义路由配置 |
|
| timeoutMillisecond |
integer |
超时时间(毫秒) |
2000 |
| aiFallbackConfig |
object |
AI 降级配置 |
|
| serviceConfigs |
array |
服务配置列表 |
|
|
object |
服务配置列表 |
||
| serviceId |
string |
服务 ID。 |
svc-d54fcbm****** |
| name |
string |
名称。 |
174174482Z**** |
| targetModelName |
string |
目标模型名称 |
gpt-4o |
| passThroughModelName |
boolean |
透传模型名称 |
true |
| onlyRedirectUpstreamCode |
boolean |
仅重定向上游编码 |
true |
| routeEmbedded |
boolean |
是否内嵌路由 |
true |
| aiSecurityGuardConfig |
object |
AI 安全防护配置 |
|
| serviceAddress |
string |
服务地址 |
https://api.example.com/v1 |
| checkRequest |
boolean |
检查请求 |
true |
| checkResponse |
boolean |
检查响应 |
true |
| checkRequestImage |
boolean |
检查请求中的图像 |
true |
| checkResponseImage |
boolean |
检查响应中的图像 |
true |
| requestCheckService |
string |
请求检查服务 |
content-moderation-service |
| responseCheckService |
string |
响应检查服务 |
output-moderation-service |
| requestImageCheckService |
string |
请求图像检查服务 |
image-moderation-service |
| responseImageCheckService |
string |
响应图像检查服务 |
generated-image-scanner |
| riskAlertLevel |
string |
风险告警级别 |
low |
| riskConfig |
array |
风险配置 |
|
|
object |
风险配置 |
||
| type |
string |
插件类型。 |
K8S |
| level |
string |
冲突等级 |
max |
| consumerRules |
object |
消费者规则 |
|
| pattern |
string |
匹配模式 |
/v1/chat/* |
| matchType |
string |
查询匹配类型 |
All |
| bufferLimit |
integer |
缓冲区大小上限 |
1024 |
| pluginStatus |
object |
插件当前状态 |
|
| errorLogs |
object |
错误日志列表 |
|
|
string |
错误日志列表 |
Failed to connect to server |
|
| serviceHealthy |
boolean |
服务健康状态 |
true |
| pluginId |
string |
插件 ID |
pl-cvmuoiem1h****** |
| consumerRequestCheckService |
array |
消费者请求校验服务 |
|
|
object |
消费者请求校验服务 |
||
| name |
string |
服务名称 |
oldUI-17590****** |
| requestCheckService |
string |
请求校验服务 |
rate-limit-check |
| requestImageCheckService |
string |
请求图片校验服务 |
nsfw-image-detector |
| matchType |
string |
查询匹配类型 |
all |
| modalityType |
string |
模态类型 |
text |
| consumerResponseCheckService |
array |
消费者响应校验服务 |
|
|
object |
消费者响应校验服务 |
||
| name |
string |
名称 |
1744250****** |
| responseCheckService |
string |
响应校验服务 |
pii-redaction |
| responseImageCheckService |
string |
响应图片校验服务 |
watermark-detector |
| matchType |
string |
查询匹配类型 |
all |
| modalityType |
string |
模态类型 |
text |
| consumerRiskLevel |
array |
消费者风险等级 |
|
|
object |
消费者风险等级 |
||
| name |
string |
参数名称。 |
1742090****** |
| matchType |
string |
查询匹配类型 |
all |
| type |
string |
类型 |
K8S |
| level |
string |
冲突等级 |
max |
| aiTokenRateLimitConfig |
object |
AI 令牌速率限制配置 |
|
| rules |
array |
规则列表 |
|
|
object |
规则列表 |
||
| limitType |
string |
限流类型 |
fixed |
| matchKey |
string |
匹配键 |
user_id |
| matchType |
string |
查询匹配类型 |
all |
| matchValue |
string |
匹配值 |
12345 |
| limitMode |
string |
限流模式 |
local |
| limitValue |
string |
限流值 |
100 |
| enableGlobalRules |
boolean |
启用全局规则 |
true |
| globalRules |
array |
全局规则 |
|
|
object |
全局规则 |
||
| limitType |
string |
限流类型 |
fixed |
| matchKey |
string |
匹配键 |
user_id |
| matchType |
string |
查询匹配类型 |
all |
| matchValue |
string |
匹配值 |
12345 |
| limitMode |
string |
限流模式 |
local |
| limitValue |
string |
限流值 |
100 |
| redisConfig |
object |
Redis 配置 |
|
| host |
string |
节点的 IP 地址。 |
0.0.0.0 |
| port |
integer |
端口号。 |
6379 |
| username |
string |
用户名 |
root |
| password |
string |
密码 |
****** |
| timeout |
integer |
健康检查响应超时时间。单位:秒。 |
60 |
| databaseNumber |
integer |
数据库连接数 |
1 |
| pluginStatus |
object |
插件状态。 |
|
| errorLogs |
object |
错误日志 |
|
|
string |
错误日志 |
auth-failed |
|
| serviceHealthy |
boolean |
服务健康状态 |
true |
| pluginId |
string |
插件 ID |
pl-cvmuoiem1h****** |
| aiCacheConfig |
object |
AI 缓存配置 |
|
| cacheTTL |
integer |
缓存生存时间(TTL) |
300 |
| redisConfig |
object |
Redis 配置 |
|
| host |
string |
节点的 IP 地址 |
0.0.0.0 |
| port |
integer |
端口号 |
6379 |
| username |
string |
用户名 |
root |
| password |
string |
密码。 |
****** |
| timeout |
integer |
健康检查响应超时时间。单位:秒。 |
60 |
| databaseNumber |
integer |
数据库连接数 |
1 |
| vectorConfig |
object |
向量配置 |
|
| type |
string |
类型 |
K8S |
| serviceHost |
string |
服务主机地址 |
localhost |
| apiKey |
string |
API Key |
sk-wRN****** |
| timeout |
integer |
健康检查响应超时时间。单位:秒。 |
60 |
| collectionId |
string |
集合 ID |
col_12345 |
| threshold |
number |
阈值 |
100 |
| embeddingConfig |
object |
嵌入配置 |
|
| type |
string |
类型 |
K8S |
| serviceId |
string |
服务 ID |
svc-d5tgnoum1****** |
| timeout |
integer |
健康检查响应超时时间。单位:秒。 |
60 |
| modelName |
string |
模型名称 |
custom_model |
| cacheKeyStrategy |
string |
缓存键策略 |
input-hash |
| cacheMode |
string |
缓存模式 |
read-write |
| pluginStatus |
object |
插件状态。 |
|
| errorLogs |
object |
错误日志 |
|
|
string |
错误日志 |
timeout |
|
| serviceHealthy |
boolean |
服务健康状态 |
true |
| pluginId |
string |
插件 ID |
pl-d1selpem1h****** |
| aiNetworkSearchConfig |
object |
AI 网络搜索配置 |
|
| needReference |
boolean |
是否需要引用 |
true |
| referenceFormat |
string |
引用格式 |
APA |
| referenceLocation |
string |
引用位置 |
end |
| defaultLang |
string |
默认语言 |
zh |
| defaultEnable |
boolean |
默认启用 |
true |
| searchFrom |
array |
搜索来源 |
|
|
object |
搜索来源 |
||
| type |
string |
类型。 |
K8S |
| apiKey |
string |
API Key |
asdfjoY87-****** |
| count |
integer |
统计项数量 |
2 |
| start |
integer |
日程开始时间。 |
1740153600000 |
| timeoutMillisecond |
integer |
超时时间 |
5000 |
| optionArgs |
object |
可选参数 |
|
|
string |
可选参数 |
temperature |
|
| endpoint |
string |
网关接入点。 |
******-hangzhou.aliyuncs.com |
| contentMode |
string |
内容模式 |
text |
| industry |
string |
实例行业类型 |
content |
| timeRange |
string |
时间范围 |
last-7-days |
| searchEngineConfig |
object |
搜索引擎配置 |
|
| type |
string |
插件类型。 |
K8S |
| apiKey |
string |
API Key |
*** |
| count |
integer |
数量 |
2 |
| start |
integer |
开始时间 |
1741829226090 |
| timeoutMillisecond |
integer |
超时时间 |
3000 |
| optionArgs |
object |
可选参数 |
|
|
string |
可选参数 |
temperature |
|
| endpoint |
string |
接入点 |
******-hangzhou.aliyuncs.com |
| contentMode |
string |
内容模式 |
text |
| industry |
string |
实例行业类型 |
content |
| timeRange |
string |
时间范围 |
last-24h |
| searchRewrite |
object |
搜索重写 |
|
| enable |
boolean |
是否启用 |
true |
| serviceId |
string |
服务 ID |
svc-cvj05lmm******* |
| modelName |
string |
模型名称 |
aa |
| timeoutMillisecond |
integer |
超时时间 |
2000 |
| maxCount |
integer |
最大数量 |
10 |
| pluginStatus |
object |
插件状态。 |
|
| errorLogs |
object |
错误日志 |
|
|
string |
错误日志 |
timeout |
|
| serviceHealthy |
boolean |
服务健康状态 |
true |
| pluginId |
string |
插件 ID |
pl-cvmuoiem1****** |
| aiToolSelectionConfig |
object |
AI 工具选择配置 |
|
| enableConditions |
object |
启用条件 |
|
| toolCountThreshold |
integer |
工具数量阈值 |
3 |
| toolReranking |
object |
工具重排序 |
|
| modelService |
object |
模型服务 |
|
| serviceId |
string |
服务 ID |
svc-cv21nj6m1hkk****** |
| modelName |
string |
模型名称 |
custom_model |
| timeoutMillisecond |
integer |
超时时间 |
3000 |
| filteringMethod |
string |
过滤方法 |
keyword |
| topKPercent |
integer |
前 K 百分比 |
0.1 |
| topNCount |
integer |
前 N 个数量 |
5 |
| scoreThreshold |
number |
分数阈值 |
0.5 |
| fallbackStrategy |
string |
回退策略 |
none |
| queryRewriting |
object |
查询重写 |
|
| enabled |
boolean |
是否开启集群审计日志功能。
|
true |
| modelService |
object |
模型服务 |
|
| serviceId |
string |
服务 ID |
svc-d51m42um1****** |
| modelName |
string |
模型名称 |
custom_image_embedding |
| timeoutMillisecond |
integer |
超时时间 |
2000 |
| promptConfig |
object |
提示词配置 |
|
| type |
string |
插件类型。 |
K8S |
| customPrompt |
string |
抽取指令 |
略带搞笑的语气,编写一段推广语,提高阅读兴趣。 |
| maxOutputTokens |
integer |
最大输出令牌数 |
256 |
| triggerConditions |
object |
触发条件 |
|
| messageCountThreshold |
integer |
消息数量阈值 |
5 |
| contextSelection |
object |
上下文选择 |
|
| type |
string |
插件类型。 |
K8S |
| value |
integer |
匹配值。 |
1 |
| fallbackStrategy |
string |
回退策略 |
none |
| pluginStatus |
object |
插件状态。 |
|
| errorLogs |
object |
错误日志 |
|
|
string |
错误日志 |
timeout |
|
| serviceHealthy |
boolean |
服务健康状态 |
true |
| pluginId |
string |
插件 ID |
pl-d4ijmu6m1hk****** |
| aiStatisticsConfig |
object |
AI 统计配置 |
|
| logRequestContent |
boolean |
记录请求内容 |
true |
| logResponseContent |
boolean |
记录响应内容 |
true |
该文章对您有帮助吗?