Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug]: Anthropic claude-3-7-sonnet issues pack #8964

Open
mitya52 opened this issue Mar 3, 2025 · 2 comments
Open

[Bug]: Anthropic claude-3-7-sonnet issues pack #8964

mitya52 opened this issue Mar 3, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mitya52
Copy link

mitya52 commented Mar 3, 2025

What happened?

Hi!

I'm implementing claude-3-7-sonnet support in Refact.ai.
We faced some issues with litellm's implementation, here is the list:

BTW thanks for your work, litellm is a great project!

Relevant log output

Delta(reasoning_content='The user has sent', thinking_blocks=[{'type': 'thinking', 'thinking': 'The user has sent', 'signature_delta': None}], provider_specific_fields={'thinking_blocks': [{'type': 'thinking', 'thinking': 'The user has sent', 'signature_delta': None}]}, content='', role='assistant', function_call=None, tool_calls=None, audio=None)
Delta(reasoning_content=' a simple greeting "hi!', thinking_blocks=[{'type': 'thinking', 'thinking': ' a simple greeting "hi!', 'signature_delta': None}], provider_specific_fields={'thinking_blocks': [{'type': 'thinking', 'thinking': ' a simple greeting "hi!', 'signature_delta': None}]}, content='', role=None, function_call=None, tool_calls=None, audio=None)
Delta(reasoning_content='". I should respond in a friendly an', thinking_blocks=[{'type': 'thinking', 'thinking': '". I should respond in a friendly an', 'signature_delta': None}], provider_specific_fields={'thinking_blocks': [{'type': 'thinking', 'thinking': '". I should respond in a friendly an', 'signature_delta': None}]}, content='', role=None, function_call=None, tool_calls=None, audio=None)
Delta(reasoning_content='d welcoming manner, introducing myself and offering', thinking_blocks=[{'type': 'thinking', 'thinking': 'd welcoming manner, introducing myself and offering', 'signature_delta': None}], provider_specific_fields={'thinking_blocks': [{'type': 'thinking', 'thinking': 'd welcoming manner, introducing myself and offering', 'signature_delta': None}]}, content='', role=None, function_call=None, tool_calls=None, audio=None)
Delta(reasoning_content=' to help with anything they might need.', thinking_blocks=[{'type': 'thinking', 'thinking': ' to help with anything they might need.', 'signature_delta': None}], provider_specific_fields={'thinking_blocks': [{'type': 'thinking', 'thinking': ' to help with anything they might need.', 'signature_delta': None}]}, content='', role=None, function_call=None, tool_calls=None, audio=None)
Delta(provider_specific_fields=None, content='', role='assistant', function_call=None, tool_calls=[ChatCompletionDeltaToolCall(id=None, function=Function(arguments='{}', name=None), type='function', index=-1)], audio=None)
Delta(provider_specific_fields=None, content="Hello there! It's nice to meet you.", role=None, function_call=None, tool_calls=None, audio=None)
Delta(provider_specific_fields=None, content=" I'm an AI assistant ready", role=None, function_call=None, tool_calls=None, audio=None)
Delta(provider_specific_fields=None, content=' to help with information, answer', role=None, function_call=None, tool_calls=None, audio=None)
Delta(provider_specific_fields=None, content=' questions, or just chat. How', role=None, function_call=None, tool_calls=None, audio=None)
Delta(provider_specific_fields=None, content=' are you doing today? Is there something', role=None, function_call=None, tool_calls=None, audio=None)
Delta(provider_specific_fields=None, content=' specific I can help you with?', role=None, function_call=None, tool_calls=None, audio=None)
Delta(provider_specific_fields=None, content=None, role=None, function_call=None, tool_calls=None, audio=None)

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.62.1

Twitter / LinkedIn details

No response

@mitya52 mitya52 added the bug Something isn't working label Mar 3, 2025
@krrishdholakia
Copy link
Contributor

by some reason in streaming mode deltas contain "signature_delta" field instead of actual "signature" in Anthropic format

hey @mitya52 so i see Anthropic returning signature_delta - how would you want us to handle this?

Image

@krrishdholakia krrishdholakia self-assigned this Mar 4, 2025
@mitya52
Copy link
Author

mitya52 commented Mar 4, 2025

@krrishdholakia thanks for clarification! But what about another issues?

@mitya52 mitya52 changed the title [Bug]: Anthopic claude-3-7-sonnet issues pack [Bug]: Anthropic claude-3-7-sonnet issues pack Mar 4, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants