Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
rinfx committed Feb 25, 2025
1 parent 66fc6df commit e05c045
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions plugins/wasm-go/extensions/ai-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,8 @@ searchFrom:
servicePort: 443
apiKey: "aliyun accessKey"
count: 10 # 搜索网页数,最多10条
optionArgs:
secretKey: "aliyun secretKey"
endpoint: "iqs.cn-zhangjiakou.aliyuncs.com"
secretKey: "aliyun secretKey"
endpoint: "iqs.cn-zhangjiakou.aliyuncs.com"
```
### 多搜索引擎配置
Expand Down
5 changes: 2 additions & 3 deletions plugins/wasm-go/extensions/ai-search/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ searchFrom:
servicePort: 443
apiKey: "aliyun accessKey"
count: 10
optionArgs:
secretKey: "aliyun secretKey"
endpoint: "iqs.cn-zhangjiakou.aliyuncs.com"
secretKey: "aliyun secretKey"
endpoint: "iqs.cn-zhangjiakou.aliyuncs.com"
```
### Multiple Search Engines Configuration
Expand Down
4 changes: 2 additions & 2 deletions plugins/wasm-go/extensions/ai-search/engine/quark/quark.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func NewQuarkSearch(config *gjson.Result) (*QuarkSearch, error) {
if engine.apiKey == "" {
return nil, errors.New("apiKey not found")
}
engine.secretKey = config.Get("optionArgs.secretKey").String()
engine.secretKey = config.Get("secretKey").String()
if engine.secretKey == "" {
return nil, errors.New("secretKey not found")
}
Expand All @@ -99,7 +99,7 @@ func NewQuarkSearch(config *gjson.Result) (*QuarkSearch, error) {
if servicePort == 0 {
return nil, errors.New("servicePort not found")
}
engine.endpoint = config.Get("optionArgs.endpoint").String()
engine.endpoint = config.Get("endpoint").String()
if engine.endpoint == "" {
return nil, errors.New("endpoint not found")
}
Expand Down

0 comments on commit e05c045

Please sign in to comment.