Return signature on anthropic streaming + migrate to signature field instead of signature_delta [MINOR bump] (#9021)

* Fix missing signature_delta in thinking blocks when streaming from Claude 3.7 (#8797)

Co-authored-by: Krish Dholakia <krrishdholakia@gmail.com>

* test: update test to enforce signature found

* feat(refactor-signature-param-to-be-'signature'-instead-of-'signature_delta'): keeps it in sync with anthropic

* fix: fix linting error

---------

Co-authored-by: Martin Krasser <krasserm@googlemail.com>
This commit is contained in:
Krish Dholakia 2025-03-05 19:33:54 -08:00 committed by GitHub
parent 17efbf0ee9
commit ec4f665e29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 19 additions and 10 deletions

View file

@ -4084,6 +4084,7 @@ def test_reasoning_content_completion(model):
)
reasoning_content_exists = False
signature_delta_exists = False
for chunk in resp:
print(f"chunk 2: {chunk}")
if (
@ -4118,3 +4119,4 @@ def test_is_delta_empty():
audio=None,
)
)