ok
This commit is contained in:
@@ -894,7 +894,6 @@ def _send_gemini(md_content: str, user_message: str, base_dir: str,
|
||||
if discussion_history and not old_history:
|
||||
_gemini_chat.send_message(f"[DISCUSSION HISTORY]\n\n{discussion_history}")
|
||||
_append_comms("OUT", "request", {"message": f"[HISTORY INJECTED] {len(discussion_history)} chars"})
|
||||
_append_comms("OUT", "request", {"message": f"[ctx {len(md_content)} + msg {len(user_message)}]"})
|
||||
payload: str | list[types.Part] = user_message
|
||||
all_text: list[str] = []
|
||||
_cumulative_tool_bytes = 0
|
||||
@@ -1059,7 +1058,8 @@ def _send_gemini_cli(md_content: str, user_message: str, base_dir: str,
|
||||
if adapter is None:
|
||||
break
|
||||
events.emit("request_start", payload={"provider": "gemini_cli", "model": _model, "round": r_idx})
|
||||
_append_comms("OUT", "request", {"message": f"[CLI] [round {r_idx}] [msg {len(payload)}]"})
|
||||
if r_idx > 0:
|
||||
_append_comms("OUT", "request", {"message": f"[CLI] [round {r_idx}] [msg {len(payload)}]"})
|
||||
send_payload = payload
|
||||
if isinstance(payload, list):
|
||||
send_payload = json.dumps(payload)
|
||||
@@ -1335,13 +1335,6 @@ def _send_anthropic(md_content: str, user_message: str, base_dir: str, file_item
|
||||
_repair_anthropic_history(_anthropic_history)
|
||||
_anthropic_history.append({"role": "user", "content": user_content})
|
||||
_add_history_cache_breakpoint(_anthropic_history)
|
||||
n_chunks = len(system_blocks)
|
||||
_append_comms("OUT", "request", {
|
||||
"message": (
|
||||
f"[system {n_chunks} chunk(s), {len(md_content)} chars context] "
|
||||
f"{user_message[:200]}{'...' if len(user_message) > 200 else ''}"
|
||||
),
|
||||
})
|
||||
all_text_parts: list[str] = []
|
||||
_cumulative_tool_bytes = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user