Skip to content

Commit 15096b5

Browse files
committed
修复对话无法进行的bug
1 parent f5a699f commit 15096b5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/api/vertex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ def _fix_thought_signatures(contents: list) -> list:
324324
real_id, signature = decode_tool_id_and_signature(raw_id)
325325
fc["id"] = real_id
326326

327-
if not part.get("thoughtSignature"):
327+
existing_sig = part.get("thoughtSignature")
328+
if not existing_sig or existing_sig == _SKIP_THOUGHT_SENTINEL:
328329
part["thoughtSignature"] = signature if signature else _SKIP_THOUGHT_SENTINEL_B64
329330

330331
return contents

0 commit comments

Comments
 (0)