Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

support returning raw_response for anthropic for enabling thinking mode as a beta feature #965

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

narengogi
Copy link
Collaborator

@narengogi narengogi commented Feb 26, 2025

Related Issues:

To receive raw_response along with the transformed response, please include the following header when making your requests: x-portkey-include-raw-response: true

Testing Done

  • non-streaming anthropic calls with x-portkey-include-raw-response set to false and true
  • streaming anthropic calls with x-portkey-include-raw-response set to false and true
  • Test one other provider with streaming and non-streaming to make sure the streamHandler changes are working correctly

Note
this PR adds support for raw_response in non-streaming responses only

@narengogi narengogi requested review from b4s36t4 and VisargD February 26, 2025 10:33
@narengogi narengogi requested a review from VisargD February 28, 2025 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants