Skip to content

feat: /v1/responses qwen3 max && perplexity - #2803

Merged
Calcium-Ion merged 2 commits into
QuantumNous:mainfrom
seefs001:feature/qwen-responses
Feb 2, 2026
Merged

feat: /v1/responses qwen3 max && perplexity#2803
Calcium-Ion merged 2 commits into
QuantumNous:mainfrom
seefs001:feature/qwen-responses

Conversation

@seefs001

@seefs001 seefs001 commented Feb 2, 2026

Copy link
Copy Markdown
Collaborator

#2526
only qwen3-max-2026-01-23

Summary by CodeRabbit

  • New Features

    • Added support for configuring "thinking" behavior and preset options in API requests.
  • Improvements

    • Enhanced routing for response-mode requests to the appropriate responses endpoint.
    • Made response-mode request handling functional to improve end-to-end request flow and reliability.

@coderabbitai

coderabbitai Bot commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Added two new JSON fields (EnableThinking, Preset) to the OpenAI responses request DTO; implemented RelayModeResponses URL routing and made ConvertOpenAIResponsesRequest a no-op passthrough in the Ali and Perplexity channel adaptors.

Changes

Cohort / File(s) Summary
DTO Enhancement
dto/openai_request.go
Added EnableThinking json.RawMessage and Preset json.RawMessage fields to OpenAIResponsesRequest (json tags enable_thinking and preset).
Ali Adapter
relay/channel/ali/adaptor.go
Added RelayModeResponses branch to GetRequestURL to route to /api/v2/apps/protocols/compatible-mode/v1/responses; replaced not-implemented ConvertOpenAIResponsesRequest with passthrough returning the incoming request.
Perplexity Adapter
relay/channel/perplexity/adaptor.go
Imported relay constants; added RelayModeResponses handling in GetRequestURL to route to /v1/responses; implemented ConvertOpenAIResponsesRequest to return the provided request unchanged.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 I nibble at fields both new and neat,
EnableThinking and Preset tucked in sweet,
Adapters hop paths with Responses in mind,
Requests pass through, no placeholder to find —
A tiny code-hop, efficient and fleet.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title 'feat: /v1/responses qwen3 max && perplexity' accurately reflects the main changes: adding /v1/responses endpoint support for both Qwen3 Max and Perplexity models.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@seefs001 seefs001 linked an issue Feb 2, 2026 that may be closed by this pull request
@seefs001 seefs001 changed the title feat: /v1/responses qwen3 max feat: /v1/responses qwen3 max && perplexity Feb 2, 2026
@Calcium-Ion
Calcium-Ion merged commit 5d2e45a into QuantumNous:main Feb 2, 2026
1 check passed
ennnnny pushed a commit to ennnnny/new-api that referenced this pull request Mar 17, 2026
feat: /v1/responses qwen3 max && perplexity
@coderabbitai coderabbitai Bot mentioned this pull request Apr 22, 2026
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.

百炼 使用Responses API报错

2 participants