mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-14 14:17:08 +00:00
Show the arguments a tool call sends, fixed values included
The approval card and a finished call showed what the model asked for, even where a fixed value replaced it. Calls now carry sent_arguments for the chat, leaving headers out since they may hold a fixed secret. The model's own arguments are kept as they were, because they are what later turns replay to it and it never sees fixed values.
This commit is contained in:
1 parent
52217d43be
commit
dba2de590b
9 files changed
+147
-7
No files matched your search
@@ -1240,6 +1240,9 @@ class LLMHandler(ABC):
|
||||
# can wire the sticky "don't ask again" button.
|
||||
if pause_info.get("device_id"):
|
||||
pause_data["device_id"] = pause_info["device_id"]
|
||||
# What will be sent once fixed values replace the model's.
|
||||
if pause_info.get("sent_arguments") is not None:
|
||||
pause_data["sent_arguments"] = pause_info["sent_arguments"]
|
||||
# A connection-backed tool whose account needs signing in: the
|
||||
# approval card becomes a Connect card.
|
||||
if pause_info.get("connection_required"):
|
||||
|
||||
Reference in new issue
Block a user