AiNetworkSearchConfig

更新时间:
复制 MD 格式

名称

类型

描述

示例值

object

object

needReference

boolean

是否在回答中添加引用来源

true

referenceFormat

string

引用内容格式模板,必须包含至少一个 %s 占位符

参考来源:\n%s

referenceLocation

string

引用位置

head

defaultLang

string

默认搜索语言代码

zh-CN

defaultEnable

boolean

插件功能默认是否开启

true

searchFrom

array

搜索引擎列表(多引擎配置)

AiNetworkConfigSearchEngine

搜索引擎列表

searchEngineConfig AiNetworkConfigSearchEngine

搜索引擎配置

searchRewrite

object

搜索词改写配置

enable

boolean

是否启用搜索词改写

true

serviceId

string

改写服务 ID

svc-xxx

modelName

string

改写使用的模型名称

qwen-max

timeoutMillisecond

integer

改写请求超时时间(毫秒)

5000

maxCount

integer

改写后的最大搜索词数量

3

pluginStatus AiPluginStatus

插件运行状态