fix(hermes): 兼容最新版 Web Search 策略

This commit is contained in:
晴天
2026-06-15 14:00:07 +08:00
parent c86382adfa
commit cf2572ea99
11 changed files with 44 additions and 25 deletions

2
src-tauri/Cargo.lock generated
View File

@@ -366,7 +366,7 @@ dependencies = [
[[package]]
name = "clawpanel"
version = "0.18.3"
version = "0.18.4"
dependencies = [
"base64 0.22.1",
"chrono",

View File

@@ -1,6 +1,6 @@
[package]
name = "clawpanel"
version = "0.18.3"
version = "0.18.4"
edition = "2021"
description = "ClawPanel - OpenClaw 可视化管理面板"
authors = ["qingchencloud"]

View File

@@ -8045,7 +8045,6 @@ fn normalize_hermes_web_backend(
backend.as_str(),
"tavily"
| "firecrawl"
| "parallel-free"
| "parallel"
| "exa"
| "searxng"
@@ -8058,7 +8057,7 @@ fn normalize_hermes_web_backend(
return Ok(backend);
}
if strict {
Err(format!("{key} 必须为空或 tavily、firecrawl、parallel-free、parallel、exa、searxng、brave、brave_free、ddgs、xai、native"))
Err(format!("{key} 必须为空或 tavily、firecrawl、parallel、exa、searxng、brave、brave_free、ddgs、xai、native"))
} else {
Ok(String::new())
}
@@ -19454,7 +19453,7 @@ streaming:
merge_hermes_web_config(
&mut config,
&json!({
"webBackend": "parallel-free",
"webBackend": "parallel",
"webSearchBackend": "exa",
"webExtractBackend": "native",
}),
@@ -19463,7 +19462,7 @@ streaming:
assert_eq!(config["model"]["provider"].as_str(), Some("anthropic"));
assert_eq!(config["streaming"]["enabled"].as_bool(), Some(true));
assert_eq!(config["web"]["backend"].as_str(), Some("parallel-free"));
assert_eq!(config["web"]["backend"].as_str(), Some("parallel"));
assert_eq!(config["web"]["search_backend"].as_str(), Some("exa"));
assert_eq!(config["web"]["extract_backend"].as_str(), Some("native"));
assert_eq!(config["web"]["custom_flag"].as_str(), Some("keep-web"));

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-config-schema/schema.json",
"productName": "ClawPanel",
"version": "0.18.3",
"version": "0.18.4",
"identifier": "ai.openclaw.clawpanel",
"build": {
"frontendDist": "../dist",