JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
【fix:deepresearch】解决改写内容过多的问题
hy592070616a8e275ea1a4c
diff --git a/jiuwenswarm/agents/harness/common/tools/deepresearch/deepresearch_rewrite_fast_path.py b/jiuwenswarm/agents/harness/common/tools/deepresearch/deepresearch_rewrite_fast_path.pyindex 18cbd9dcef..80452ab769 100644--- a/jiuwenswarm/agents/harness/common/tools/deepresearch/deepresearch_rewrite_fast_path.py+++ b/jiuwenswarm/agents/harness/common/tools/deepresearch/deepresearch_rewrite_fast_path.py@@ -8,7 +8,7 @@ import mathimport reimport timefrom dataclasses import dataclass-from typing import Any, Awaitable, Callable+from typing import Any, Awaitable, Callable, Mappingimport json_repair@@ -79,6 +79,12 @@ _RETRY_SYSTEM_SUFFIX = ("Return only the required JSON object. Do not use Markdown fences and do ""not copy input metadata fields.")+_FORMAT_CONFLICT_RETRY_SYSTEM_SUFFIX = (+ "\n\nStrict retry: the previous rewrite changed protected inline Markdown "+ "structure. Return a fresh JSON object whose text values contain only "+ "replacement prose. Do not add Markdown delimiters, citations, links, code, "+ "formulas, URLs, or inline formatting."+)_USAGE_SUM_KEYS = {"input_tokens","output_tokens",@@ -93,8 +99,8 @@ _SUCCESS_MESSAGE = ("如需继续改写,可直接选择下一处内容。")_DELIVERY_FAILURE_MESSAGE = "改写版本已成功保留,但报告文件交付失败。"-_MODEL_CALL_TIMEOUT_SECONDS = 180.0-_TOTAL_TIMEOUT_SECONDS = 360.0+_MODEL_CALL_TIMEOUT_SECONDS = 600.0+_TOTAL_TIMEOUT_SECONDS = 600.0_REQUEST_JSON_MAX_BYTES = 1024 * 1024_TOOL_JSON_MAX_BYTES = 4 * 1024 * 1024_PROMPT_JSON_MAX_BYTES = 4 * 1024 * 1024@@ -557,6 +563,7 @@ async def run_rewrite_fast_path(prepare_invoke: Callable[..., Awaitable[object]],model_invoke: Callable[..., Awaitable[object]],commit_invoke: Callable[..., Awaitable[object]],+ model_call_kwargs: Mapping[str, Any] | None = None,model_call_timeout_seconds: float = _MODEL_CALL_TIMEOUT_SECONDS,total_timeout_seconds: float = _TOTAL_TIMEOUT_SECONDS,) -> RewriteFastPathResult | None:@@ -665,7 +672,9 @@ async def run_rewrite_fast_path(]model_started = time.perf_counter()- model_kwargs = {"temperature": 0.2} if request.action == "polish" else {}+ model_kwargs = dict(model_call_kwargs or {})+ if request.action == "polish":+ model_kwargs["temperature"] = 0.2usage_metadata = Nonemodel_calls = 0structured_result = None@@ -796,6 +805,133 @@ async def run_rewrite_fast_path(model_output_adjustments=model_output_adjustments,)commit_ms = _milliseconds(commit_started)+ if (+ committed.get("status") != "completed"+ and committed.get("error_code") == "FORMAT_CONFLICT"+ and model_calls < 2+ ):+ retry_messages = [+ {+ "role": "system",+ "content": _SYSTEM_PROMPT + _FORMAT_CONFLICT_RETRY_SYSTEM_SUFFIX,+ },+ messages[1],+ ]+ try:+ model_calls += 1+ remaining_seconds = _remaining_seconds(deadline)+ call_timeout_seconds = min(+ model_call_timeout_seconds,+ remaining_seconds,+ )+ response = await asyncio.wait_for(+ model_invoke(retry_messages, **model_kwargs),+ timeout=call_timeout_seconds,+ )+ except TimeoutError:+ task_timed_out = remaining_seconds <= model_call_timeout_seconds+ return _result(+ started_at=started_at,+ status="error",+ action=request.action,+ error_code=(+ "REWRITE_TIMEOUT" if task_timed_out else "MODEL_CALL_TIMEOUT"+ ),+ message=(+ "rewrite task timed out"+ if task_timed_out+ else "rewrite model call timed out"+ ),+ usage_metadata=usage_metadata,+ prepare_ms=prepare_ms,+ model_ms=_milliseconds(model_started),+ commit_ms=commit_ms,+ model_calls=model_calls,+ model_output_adjustments=model_output_adjustments,+ )+ except Exception: # pylint: disable=broad-exception-caught+ return _result(+ started_at=started_at,+ status="error",+ action=request.action,+ error_code="MODEL_CALL_FAILED",+ message="rewrite model call failed",+ usage_metadata=usage_metadata,+ prepare_ms=prepare_ms,+ model_ms=_milliseconds(model_started),+ commit_ms=commit_ms,+ model_calls=model_calls,+ model_output_adjustments=model_output_adjustments,+ )+ usage_metadata = _merge_usage_metadata(+ usage_metadata,+ _normalize_usage_metadata(getattr(response, "usage_metadata", None)),+ )+ try:+ structured_result, retry_adjustments = _decode_model_result(+ getattr(response, "content", None),+ projected_units,+ )+ except ModelOutputError as exc:+ return _result(+ started_at=started_at,+ status="error",+ action=request.action,+ error_code="MODEL_OUTPUT_INVALID",+ message="invalid structured rewrite result",+ usage_metadata=usage_metadata,+ prepare_ms=prepare_ms,+ model_ms=_milliseconds(model_started),+ commit_ms=commit_ms,+ model_calls=model_calls,+ model_output_adjustments=model_output_adjustments,+ model_output_error_reason=exc.reason,+ )+ model_output_adjustments = tuple(+ dict.fromkeys(model_output_adjustments + retry_adjustments)+ )+ model_ms = _milliseconds(model_started)+ commit_started = time.perf_counter()+ try:+ committed = _decode_tool_result(+ await asyncio.wait_for(+ commit_invoke(+ context_token=context_token,+ structured_result=structured_result,+ ),+ timeout=_remaining_seconds(deadline),+ ),+ max_bytes=_TOOL_JSON_MAX_BYTES,+ )+ except TimeoutError:+ return _result(+ started_at=started_at,+ status="error",+ action=request.action,+ error_code="REWRITE_TIMEOUT",+ message="rewrite task timed out",+ usage_metadata=usage_metadata,+ prepare_ms=prepare_ms,+ model_ms=model_ms,+ commit_ms=_milliseconds(commit_started),+ model_calls=model_calls,+ model_output_adjustments=model_output_adjustments,+ )+ except Exception: # pylint: disable=broad-exception-caught+ return _result(+ started_at=started_at,+ status="error",+ action=request.action,+ error_code="WRITE_FAILED",+ message="rewrite commit failed",+ usage_metadata=usage_metadata,+ prepare_ms=prepare_ms,+ model_ms=model_ms,+ commit_ms=_milliseconds(commit_started),+ model_calls=model_calls,+ model_output_adjustments=model_output_adjustments,+ )+ commit_ms = _milliseconds(commit_started)if committed.get("status") != "completed":code, message = _safe_error_fields(committed,diff --git a/jiuwenswarm/agents/harness/common/tools/deepresearch/tools.py b/jiuwenswarm/agents/harness/common/tools/deepresearch/tools.pyindex 5ab14d998b..bcbe97ff92 100644--- a/jiuwenswarm/agents/harness/common/tools/deepresearch/tools.py+++ b/jiuwenswarm/agents/harness/common/tools/deepresearch/tools.py@@ -2356,6 +2356,12 @@ def _write_report_markdown_once("version_base_stem": paths.version.base_stem,"citations": bundle.citations,"inference_manifest": bundle.inference_manifest,+ "inference_graph_path": bundle.inference_graph_path,+ "inference_graph_sha256": (+ hashlib.sha256(bundle.inference_graph_bytes).hexdigest()+ if bundle.inference_graph_bytes is not None+ else ""+ ),"chart_manifest": bundle.chart_manifest,"rewrite_history": [],}diff --git a/jiuwenswarm/agents/harness/common/tools/deepresearch_plugin/report_bundle.py b/jiuwenswarm/agents/harness/common/tools/deepresearch_plugin/report_bundle.pyindex 975a593d1d..c9b522781a 100644--- a/jiuwenswarm/agents/harness/common/tools/deepresearch_plugin/report_bundle.py+++ b/jiuwenswarm/agents/harness/common/tools/deepresearch_plugin/report_bundle.py@@ -10,6 +10,7 @@ import osimport reimport statfrom dataclasses import dataclass+from datetime import datetime, timezonefrom pathlib import Pathfrom typing import Callable@@ -43,6 +44,8 @@ class ReportBundle:inference_manifest: list[dict]chart_manifest: list[dict]final_result_snapshot: dict+ inference_graph_path: str | None = None+ inference_graph_bytes: bytes | None = None@dataclass(frozen=True, slots=True)@@ -679,6 +682,45 @@ def build_report_bundle(chart_messages,chart_ids,)+ # Build inference graphs JSON — parse all inference HTMLs, merge, write+ graphs: list[dict] = []+ infer_msg_by_id = {str(im.get("id", "")): im for im in infer_messages}+ for resource in infer_resources:+ html_str = resource.payload.decode("utf-8", errors="replace")+ parsed = parse_inference_html(html_str)+ nodes = parsed.get("nodes", [])+ edges = parsed.get("edges", [])+ parse_error = parsed.get("parse_error")+ if not parse_error:+ nodes = _supplement_intermediate_nodes(nodes, edges)+ nodes = _enrich_citation_nodes(nodes, citations)+ inference_id = resource.resource_id+ msg = infer_msg_by_id.get(inference_id, {})+ graph: dict = {+ "inference_id": inference_id,+ "conclusion": msg.get("conclusion", ""),+ "inference": msg.get("inference", ""),+ "nodes": nodes,+ "edges": edges,+ }+ if parse_error:+ graph["parse_error"] = parse_error+ graphs.append(graph)+ if graphs:+ graph_data = {+ "schema_version": 1,+ "conversation_id": "",+ "generated_at": datetime.now(timezone.utc).isoformat(),+ "graphs": graphs,+ }+ graph_bytes = json.dumps(graph_data, ensure_ascii=False).encode("utf-8")+ graph_path = groups[0].directory / "inference_graphs.json"+ graph_path.write_bytes(graph_bytes)+ inference_graph_path = f"{groups[0].directory.name}/inference_graphs.json"+ inference_graph_bytes = graph_bytes+ else:+ inference_graph_path = None+ inference_graph_bytes = Nonereturn ReportBundle(markdown_text=markdown_text,infer_dir=infer_dir,@@ -687,8 +729,200 @@ def build_report_bundle(inference_manifest=inference_manifest,chart_manifest=chart_manifest,final_result_snapshot=final_result_snapshot,+ inference_graph_path=inference_graph_path,+ inference_graph_bytes=inference_graph_bytes,)except BaseException:for group in reversed(groups):_cleanup_group(group)raise+++# ---------------------------------------------------------------------------+# Node colour → type mapping (source: generate_html.py _select_show_info)+# ---------------------------------------------------------------------------+_NODE_COLOR_TO_TYPE: dict[str, str] = {+ "#e1cef0": "programmer_node",+ "#def0ce": "citation_node",+ "#d2e6f4": "conclusion_node",+ "#f6f6d2": "intermediate_node",+ "#f5c2c7": "final_conclusion_node",+}++# Edge label → type mapping (bilingual, case-insensitive)+_EDGE_LABEL_TO_TYPE: dict[str, str] = {+ "引用": "citation_edge",+ "refer": "citation_edge",+ "推理": "infer_edge",+ "infer": "infer_edge",+ "汇总": "combine_edge",+ "summ": "combine_edge",+}+++def _extract_js_array(html: str, marker: str) -> str | None:+ """Locate ``marker`` in *html*, then extract the first ``[...]`` JSON+ array using string-aware bracket counting. Returns the raw JSON string+ (including the outer brackets) or *None* if the marker or array cannot+ be found."""+ pos = html.find(marker)+ if pos == -1:+ return None+ pos = html.find("[", pos)+ if pos == -1:+ return None++ depth = 0+ in_string = False+ for i in range(pos, len(html)):+ ch = html[i]+ if in_string:+ if ch == '"' and (i == 0 or html[i - 1] != "\\"):+ in_string = False+ continue+ if ch == '"':+ in_string = True+ continue+ if ch in ("[", "{"):+ depth += 1+ elif ch in ("]", "}"):+ depth -= 1+ if depth == 0:+ return html[pos:i + 1]+ return None+++def _map_node_type(node: dict) -> dict:+ """Add a ``type`` field to *node* based on its colour."""+ raw_color = node.get("color", "")+ if isinstance(raw_color, dict):+ colour = raw_color.get("background", "").lower()+ else:+ colour = str(raw_color).lower()+ node["type"] = _NODE_COLOR_TO_TYPE.get(colour, "unknown")+ return node+++def _map_edge_type(edge: dict) -> dict:+ """Add a ``type`` field to *edge* based on its label."""+ label = str(edge.get("label", "")).lower().strip()+ edge["type"] = _EDGE_LABEL_TO_TYPE.get(label, "unknown")+ return edge+++def parse_inference_html(html_content: str) -> dict:+ """Parse a pyvis-generated HTML string and return its nodes and edges.++ Returns a dictionary with the following keys:+ - ``nodes`` – list of node dicts, each with an added ``type`` field.+ - ``edges`` – list of edge dicts, each with an added ``type`` field.+ - ``parse_error`` – (only on failure) a human-readable error message.+ """+ try:+ nodes_raw = _extract_js_array(html_content, "nodes = new vis.DataSet(")+ edges_raw = _extract_js_array(html_content, "edges = new vis.DataSet(")++ if nodes_raw is None:+ return {"nodes": [], "edges": [], "parse_error": "nodes marker not found"}+ if edges_raw is None:+ return {"nodes": [], "edges": [], "parse_error": "edges marker not found"}++ nodes: list[dict] = json.loads(nodes_raw)+ edges: list[dict] = json.loads(edges_raw)++ return {+ "nodes": [_map_node_type(n) for n in nodes],+ "edges": [_map_edge_type(e) for e in edges],+ }+ except (ValueError, TypeError, IndexError) as exc:+ return {"nodes": [], "edges": [], "parse_error": str(exc)}+++def _supplement_intermediate_nodes(nodes: list[dict], edges: list[dict]) -> list[dict]:+ """Enrich intermediate nodes with a human-readable label derived from+ their incoming *combine* edges.++ For each node where ``type == "intermediate_node"`` and ``label`` is+ empty or equal to the node's own ID (pyvis replaces empty labels with+ the integer node ID during JSON serialization), the function finds all+ incoming combine edges, collects the ``source_labels`` from the source+ nodes, and sets ``label`` to ``"汇总 N 条结论"``.++ The input *nodes* and *edges* lists are **not** modified — a deep copy+ is returned.+ """+ result = copy.deepcopy(nodes)+ node_by_id = {n["id"]: n for n in result}++ for node in result:+ if node.get("type") != "intermediate_node":+ continue+ # SDK creates intermediate nodes with label="" (empty string), but+ # pyvis replaces empty labels with the node's integer ID during+ # serialization. Accept both forms as "no real label".+ label = node.get("label", "")+ node_id_str = str(node.get("id", ""))+ if label != "" and str(label) != node_id_str:+ continue++ from_ids = []+ for edge in edges:+ if edge.get("to") != node["id"]:+ continue+ if (+ edge.get("type") != "combine_edge"+ and edge.get("label") != "汇总"+ ):+ continue+ from_ids.append(edge["from"])+ source_labels = [+ node_by_id[from_id]["label"]+ for from_id in from_ids+ if from_id in node_by_id+ ]+ node["label"] = f"汇总 {len(source_labels)} 条结论"+ node["source_labels"] = source_labels++ return result+++def _enrich_citation_nodes(nodes: list[dict], citations: list[dict]) -> list[dict]:+ """Enrich citation nodes with metadata from the citations list.++ For each node where ``type == "citation_node"`` and ``url`` is non-empty,+ the function looks up the URL in the citations list and sets the+ ``title``, ``source``, and ``publish_time`` fields. If the URL is not+ found, all three fields are set to empty string.++ The input *nodes* and *citations* lists are **not** modified — a deep+ copy is returned.+ """+ result = copy.deepcopy(nodes)+ url_to_meta = {+ c["url"]: {+ "title": c.get("title", ""),+ "source": c.get("source", ""),+ "publish_time": c.get("publish_time", ""),+ }+ for c in citations+ if c.get("url")+ }++ for node in result:+ if node.get("type") != "citation_node":+ continue+ url = node.get("url", "")+ if not url:+ continue++ meta = url_to_meta.get(url)+ if meta is not None:+ node["title"] = meta["title"]+ node["source"] = meta["source"]+ node["publish_time"] = meta["publish_time"]+ else:+ node["title"] = ""+ node["source"] = ""+ node["publish_time"] = ""++ return resultdiff --git a/jiuwenswarm/server/runtime/agent_adapter/interface_deep.py b/jiuwenswarm/server/runtime/agent_adapter/interface_deep.pyindex 83b1164945..d81f2bd7e9 100644--- a/jiuwenswarm/server/runtime/agent_adapter/interface_deep.py+++ b/jiuwenswarm/server/runtime/agent_adapter/interface_deep.py@@ -12510,12 +12510,18 @@ class JiuWenSwarmDeepAdapter:query: object,) -> RewriteFastPathResult | None:from jiuwenswarm.agents.harness.common.tools.deepresearch import rewrite_tools+ from jiuwenswarm.common.thinking.adapter import adapt_thinking+ from jiuwenswarm.common.thinking.types import thaw_llm_call_kwargs+ model_call_kwargs = thaw_llm_call_kwargs(+ adapt_thinking("off", model=self._model).llm_call_kwargs+ )return await run_rewrite_fast_path(query,model_invoke=self._model.invoke,prepare_invoke=rewrite_tools.deepresearch_prepare_rewrite._func, # pylint: disable=protected-accesscommit_invoke=rewrite_tools.deepresearch_commit_rewrite._func, # pylint: disable=protected-access+ model_call_kwargs=model_call_kwargs,)@staticmethoddiff --git a/tests/unit_tests/agentserver/test_deepresearch_rewrite_fast_path.py b/tests/unit_tests/agentserver/test_deepresearch_rewrite_fast_path.pyindex fe3606aa0b..181ed71862 100644--- a/tests/unit_tests/agentserver/test_deepresearch_rewrite_fast_path.py+++ b/tests/unit_tests/agentserver/test_deepresearch_rewrite_fast_path.py@@ -64,6 +64,11 @@ def test_parse_rewrite_envelope_ignores_plain_message():assert parse_rewrite_envelope("请润色这段文字") is None+def test_rewrite_fast_path_defaults_allow_ten_minutes_for_long_selections():+ assert fast_path_module._MODEL_CALL_TIMEOUT_SECONDS == 600.0+ assert fast_path_module._TOTAL_TIMEOUT_SECONDS == 600.0++def test_parse_rewrite_envelope_bounds_input_before_regex(monkeypatch):monkeypatch.setattr(fast_path_module, "_REQUEST_JSON_MAX_BYTES", 32)@@ -851,6 +856,28 @@ async def test_run_rewrite_fast_path_maps_model_exception_without_committing():commit.assert_not_awaited()+async def test_run_rewrite_fast_path_forwards_model_call_kwargs():+ model = AsyncMock(+ return_value=SimpleNamespace(content=_json_result(_STRUCTURED_RESULT))+ )++ result = await run_rewrite_fast_path(+ _query(),+ prepare_invoke=AsyncMock(return_value=_json_result(_PREPARED)),+ model_invoke=model,+ commit_invoke=AsyncMock(return_value=_json_result({"status": "completed"})),+ model_call_kwargs={"extra_body": {"thinking": {"type": "disabled"}}},+ )++ assert result is not None+ assert result.status == "completed"+ assert model.await_args.kwargs == {+ "temperature": 0.2,+ "extra_body": {"thinking": {"type": "disabled"}},+ }++@pytest.mark.asyncioasync def test_run_rewrite_fast_path_ends_on_model_call_timeout():async def model_never_returns(*_args, **_kwargs):@@ -1081,6 +1108,13 @@ async def test_run_rewrite_fast_path_rejects_reordered_slots_after_retry():@pytest.mark.asyncioasync def test_run_rewrite_fast_path_preserves_commit_error():+ format_conflict = _json_result(+ {+ "status": "error",+ "error_code": "FORMAT_CONFLICT",+ "error": "rewrite changed protected inline topology",+ }+ )result = await run_rewrite_fast_path(_query(),prepare_invoke=AsyncMock(return_value=_json_result(_PREPARED)),@@ -1088,20 +1122,47 @@ async def test_run_rewrite_fast_path_preserves_commit_error():return_value=SimpleNamespace(content=_json_result(_STRUCTURED_RESULT))),commit_invoke=AsyncMock(- return_value=_json_result(+ side_effect=[format_conflict, format_conflict]+ ),+ )++ assert result is not None+ assert result.status == "error"+ assert result.error_code == "FORMAT_CONFLICT"+ assert result.model_calls == 2+++async def test_run_rewrite_fast_path_retries_format_conflict_with_plain_text_prompt():+ model = AsyncMock(+ return_value=SimpleNamespace(content=_json_result(_STRUCTURED_RESULT))+ )+ commit = AsyncMock(+ side_effect=[+ _json_result({"status": "error","error_code": "FORMAT_CONFLICT","error": "rewrite changed protected inline topology",}- )- ),+ ),+ _json_result({"status": "completed"}),+ ]+ )++ result = await run_rewrite_fast_path(+ _query(),+ prepare_invoke=AsyncMock(return_value=_json_result(_PREPARED)),+ model_invoke=model,+ commit_invoke=commit,)assert result is not None- assert result.status == "error"- assert result.error_code == "FORMAT_CONFLICT"- assert result.model_calls == 1+ assert result.status == "completed"+ assert result.model_calls == 2+ assert model.await_count == 2+ assert commit.await_count == 2+ assert "protected inline Markdown structure" in model.await_args_list[1].args[0][0]["content"]@pytest.mark.asynciodiff --git a/tests/unit_tests/agentserver/test_deepresearch_rewrite_fast_path_adapter.py b/tests/unit_tests/agentserver/test_deepresearch_rewrite_fast_path_adapter.pyindex f7c21029d7..237a453911 100644--- a/tests/unit_tests/agentserver/test_deepresearch_rewrite_fast_path_adapter.py+++ b/tests/unit_tests/agentserver/test_deepresearch_rewrite_fast_path_adapter.py@@ -673,6 +673,26 @@ async def test_adapter_fast_path_plain_text_has_no_tool_or_model_side_effects():commit.assert_not_awaited()+async def test_adapter_disables_thinking_for_glm_rewrite_model():+ adapter, *_ = _adapter_with_active_session()+ adapter._model = SimpleNamespace(+ model_config=SimpleNamespace(model_name="glm-5.2"),+ invoke=AsyncMock(),+ )++ with patch.object(+ interface_module,+ "run_rewrite_fast_path",+ new=AsyncMock(return_value=_result()),+ ) as run_fast_path:+ await adapter._try_deepresearch_rewrite_fast_path(_query())++ assert run_fast_path.await_args.kwargs["model_call_kwargs"] == {+ "extra_body": {"thinking": {"type": "disabled"}}+ }++@pytest.mark.asyncioasync def test_rewrite_transaction_holds_core_send_then_control_locks_through_persist():adapter, *_ = _adapter_with_active_session()diff --git a/uv.lock b/uv.lockindex 4d9305cc62..da62a6069b 100644--- a/uv.lock+++ b/uv.lock@@ -1914,6 +1914,12 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/b2/a3/e137168c9c44d18eff0376253da9f1e9234d0239e0ee230d2fee6cea8e55/jeepney-0.9.0-py3-none-any.whl", hash = "sha256:97e5714520c16fc0a45695e5365a2e11b81ea79bba796e26f9f1d178cb182683", size = 49010, upload-time = "2025-02-27T18:51:00.104Z" },]+[[package]]+name = "jieba"+version = "0.42.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c6/cb/18eeb235f833b726522d7ebed54f2278ce28ba9438e3135ab0278d9792a2/jieba-0.42.1.tar.gz", hash = "sha256:055ca12f62674fafed09427f176506079bc135638a14e23e25be909131928db2", size = 19214172, upload-time = "2020-01-20T14:27:23.5Z" }+[[package]]name = "jinja2"version = "3.1.6"@@ -3397,10 +3403,11 @@ zmq = [[[package]]name = "openjiuwen-deepsearch"version = "0.2.0"-source = { git = "https://gitcode.com/openJiuwen/deepsearch.git?subdirectory=deepsearch&rev=dev-stable#54e0404d26a255d654d51863fd279a64e3e8dc4f" }+source = { git = "https://gitcode.com/openJiuwen/deepsearch.git?subdirectory=deepsearch&rev=dev-stable#7dd18ea09b6e9a97bf05e37e001d0ec0c961ab68" }dependencies = [{ name = "aiolimiter" },{ name = "beautifulsoup4" },+ { name = "jieba" },{ name = "jinja2" },{ name = "json-repair" },{ name = "latex2mathml" },