fix: patch summarizers for integration_test_send_message.py (#4919)
* fix: integration_test_send_message.py * patch summarizer * remove print
This commit is contained in:
committed by
Caren Thomas
parent
155fa9c734
commit
b5de42fefd
@@ -291,10 +291,11 @@ class AnthropicClient(LLMClientBase):
|
||||
# Both drop heartbeats in the payload
|
||||
data["messages"] = drop_heartbeats(data["messages"])
|
||||
# And drop heartbeats in the tools
|
||||
for tool in data["tools"]:
|
||||
tool["input_schema"]["properties"].pop(REQUEST_HEARTBEAT_PARAM, None)
|
||||
if REQUEST_HEARTBEAT_PARAM in tool["input_schema"]["required"]:
|
||||
tool["input_schema"]["required"].remove(REQUEST_HEARTBEAT_PARAM)
|
||||
if "tools" in data:
|
||||
for tool in data["tools"]:
|
||||
tool["input_schema"]["properties"].pop(REQUEST_HEARTBEAT_PARAM, None)
|
||||
if REQUEST_HEARTBEAT_PARAM in tool["input_schema"]["required"]:
|
||||
tool["input_schema"]["required"].remove(REQUEST_HEARTBEAT_PARAM)
|
||||
|
||||
else:
|
||||
# Strip heartbeat pings if extended thinking
|
||||
|
||||
Reference in New Issue
Block a user