feat(claude): Support calling Claude channels via /v1/responses - #2892
Closed
Redtropig wants to merge 5199 commits into
Closed
feat(claude): Support calling Claude channels via /v1/responses#2892Redtropig wants to merge 5199 commits into
Redtropig wants to merge 5199 commits into
Conversation
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.
(incl. OpenAI function call --> Claude tool use)
Set "ChatCompletions→Responses 兼容配置" && "Model mapping" to test.
ConvertOpenAIResponsesRequestandDoResponsesRequestin Claude adaptor to support the experimental OpenAI Responses API.RequestOpenAIResponses2ClaudeMessageto convert Responses inputs to Claude messages, featuring validation to skip empty text blocks causing API errors.ResponseClaude2OpenAIResponses, correctly mapping Claude'stool_usetofunction_calloutputs.ResponsesResponseToChatCompletionsResponsein compatibility service to support messages containing both text and tool calls, ensuring reasoning text is not discarded when tools are used.-> Tested working config:

Summary by CodeRabbit
New Features
Bug Fixes