Merged
Conversation
Add complete Anthropic provider implementation with the following features: - MessagesAdapter: Translates between internal format and Anthropic Messages API - Converts OpenAI-style messages to Anthropic format - Handles system prompts as top-level parameter - Converts tool specifications to Anthropic input_schema format - Supports multimodal content (text and images) - Streams responses with SSE event handling - Converts Anthropic responses back to OpenAI-compatible format - AnthropicProvider: Manages API communication with Anthropic - Authentication via x-api-key header - Anthropic API version header support - Upstream request/response logging - Tool support with automatic schema conversion - Prompt caching support - Default model: claude-3-5-sonnet-20241022 Implementation follows existing provider patterns and maintains OpenAI API compatibility.
Add unit tests for the MessagesAdapter covering: - OpenAI to Anthropic message format conversion - System message extraction and combination - Tool specification conversion - Tool use and tool result handling - Multimodal content conversion - Streaming event translation - Default model handling - Error cases All 15 tests pass successfully.
Add UI support for Anthropic provider configuration: - Add 'Anthropic' option to Provider Type dropdown - Conditionally hide Base URL field for non-OpenAI providers - Update helper text based on selected provider type - Add provider-specific API key placeholder (sk-ant-api03-... for Anthropic) The Base URL field now only appears when 'OpenAI Compatible' is selected, as Anthropic provider uses a fixed endpoint (https://api.anthropic.com).
…est reliability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.