fix(web-search): polish Keenable provider integration after #1946

Expose optional API key in settings UI, map longer API snippets into Content
for RAG, align maxResults fallback with other providers, sync Swagger enum,
and add follow-up unit tests.
This commit is contained in:
wizardchen
2026-07-07 17:06:56 +08:00
committed by lyingbug
parent 8cf9f1c882
commit 77cf6a5789
13 changed files with 104 additions and 14 deletions
+4 -2
View File
@@ -18058,7 +18058,8 @@ const docTemplate = `{
"tavily",
"ollama",
"baidu",
"searxng"
"searxng",
"keenable"
],
"x-enum-varnames": [
"WebSearchProviderTypeBing",
@@ -18067,7 +18068,8 @@ const docTemplate = `{
"WebSearchProviderTypeTavily",
"WebSearchProviderTypeOllama",
"WebSearchProviderTypeBaidu",
"WebSearchProviderTypeSearxng"
"WebSearchProviderTypeSearxng",
"WebSearchProviderTypeKeenable"
]
},
"github_com_Tencent_WeKnora_internal_types.WikiConfig": {
+4 -2
View File
@@ -18051,7 +18051,8 @@
"tavily",
"ollama",
"baidu",
"searxng"
"searxng",
"keenable"
],
"x-enum-varnames": [
"WebSearchProviderTypeBing",
@@ -18060,7 +18061,8 @@
"WebSearchProviderTypeTavily",
"WebSearchProviderTypeOllama",
"WebSearchProviderTypeBaidu",
"WebSearchProviderTypeSearxng"
"WebSearchProviderTypeSearxng",
"WebSearchProviderTypeKeenable"
]
},
"github_com_Tencent_WeKnora_internal_types.WikiConfig": {
+2
View File
@@ -3459,6 +3459,7 @@ definitions:
- ollama
- baidu
- searxng
- keenable
type: string
x-enum-varnames:
- WebSearchProviderTypeBing
@@ -3468,6 +3469,7 @@ definitions:
- WebSearchProviderTypeOllama
- WebSearchProviderTypeBaidu
- WebSearchProviderTypeSearxng
- WebSearchProviderTypeKeenable
github_com_Tencent_WeKnora_internal_types.WikiConfig:
properties:
extraction_granularity: