Skip to content

Commit 58f8058

Browse files
committed
fix(standard-tests): update Anthropic inputs test (#33391)
Since 10/7 Anthropic will raise BadRequestError if given an invalid thinking signature.
1 parent 9e25ddd commit 58f8058

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

libs/standard-tests/langchain_tests/integration_tests/chat_models.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,8 +2979,18 @@ def supports_anthropic_inputs(self) -> bool:
29792979
[
29802980
{
29812981
"type": "thinking",
2982-
"thinking": "I'm thinking...",
2983-
"signature": "abc123",
2982+
"thinking": (
2983+
"This is a simple greeting. I should respond warmly and "
2984+
"professionally, and perhaps ask how I can help the person "
2985+
"today."
2986+
),
2987+
"signature": (
2988+
"ErUBCkYICBgCIkDCTQUXPc3O7nHXd302Zercaz8WrrpddpOqHITxBih5ze"
2989+
"FPoJkwKBvkvZ8ID1aAfJftji6+ZI5gBYDo7XmNBIkzEgzVDHKopedAn/sc"
2990+
"G80aDFDXVZrDOWgla7lEBiIwLq5kfFjQjvF/CyuL8J5V7dRwsJN5gQIXaM"
2991+
"B6xXTs6T+2Zp0VdiyiMb/hcdrHt+7aKh0z2E1UnjiOCoTlofNFHzOnKk0q"
2992+
"PIoPmfGgpPgGNRgC"
2993+
),
29842994
},
29852995
{
29862996
"type": "text",

0 commit comments

Comments
 (0)