Skip to content

Conversation

@narengogi
Copy link
Collaborator

@narengogi narengogi commented Mar 27, 2025

Code Quality new feature

Title: Caching Support for Anthropic Thinking

🔄 What Changed

  • Added support for handling Anthropic's content blocks in the OpenAI chat completion transformer
  • Implemented chunking and streaming for different content block types (text, thinking, data)
  • Added a new ContentBlockChunk interface to support the feature

🔍 Impact of the Change

This change enables the gateway to properly process and stream Anthropic's content blocks, particularly the 'thinking' feature. It improves compatibility with Anthropic's API and ensures proper data streaming to clients.

📁 Total Files Changed

  • 2 files modified
  • 118 lines added, 1 line removed

🧪 Test Added

Tested with caching streaming requests with thinking model responses

🔒 Security Vulnerabilities

No security vulnerabilities identified

Related Issues:

@VisargD
Copy link
Collaborator

VisargD commented Mar 29, 2025

Raised another PR which already has the commits from this PR: #1014

@VisargD VisargD closed this Mar 29, 2025
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