Skip to content

feat(openai): Reasoning translation for responses to chat completions - #1014

Open
s-akhtar-baig wants to merge 8 commits into
praxis-proxy:mainfrom
s-akhtar-baig:reasoning_translation
Open

feat(openai): Reasoning translation for responses to chat completions#1014
s-akhtar-baig wants to merge 8 commits into
praxis-proxy:mainfrom
s-akhtar-baig:reasoning_translation

Conversation

@s-akhtar-baig

@s-akhtar-baig s-akhtar-baig commented Sep 8, 2026

Copy link
Copy Markdown

Summary

Adds a configurable reasoning dialect to the responses_to_chat_completions filter so that raw chain-of-thought returned by a Chat Completions backend is surfaced as a first-class Responses reasoning output item. The first dialect is vllm; the default (none) preserves existing behavior.

A reasoning summary request is currently rejected and is out of scope for #31.

Related issue

Implements part one for #31. Streaming reasoning translation is deferred to #36 and will be added as a follow-up PR once all the bug fixes land in main.

Validation

  • Unit tests
  • Integration or functional tests
  • make lint

Checklist

  • I reviewed every changed line and can explain the change.
  • New capabilities include an example config and functional example test.
  • User-facing behavior and generated documentation are updated.
  • Commits are signed and include a Signed-off-by trailer.

Breaking changes

@s-akhtar-baig
s-akhtar-baig requested review from a team and alexsnaps September 8, 2026 16:28
@praxis-bot-app

praxis-bot-app Bot commented Sep 8, 2026

Copy link
Copy Markdown

Unsigned commits: 64fee79. Please sign your commits.

Signed-off-by: Shabana Baig <43451943+s-akhtar-baig@users.noreply.github.com>
Signed-off-by: Shabana Baig <43451943+s-akhtar-baig@users.noreply.github.com>
Signed-off-by: Shabana Baig <43451943+s-akhtar-baig@users.noreply.github.com>
Signed-off-by: Shabana Baig <43451943+s-akhtar-baig@users.noreply.github.com>
@praxis-bot-app

praxis-bot-app Bot commented Sep 8, 2026

Copy link
Copy Markdown

Missing Signed-off-by: a97af86, c8f8865. All commits require sign-off (via git commit --signoff).

Signed-off-by: Shabana Baig <43451943+s-akhtar-baig@users.noreply.github.com>
…hat_completions filter

Signed-off-by: Shabana Baig <43451943+s-akhtar-baig@users.noreply.github.com>
Signed-off-by: Shabana Baig <43451943+s-akhtar-baig@users.noreply.github.com>

@praxis-bot praxis-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praxis-bot review: feat(openai): Reasoning translation for responses to chat completions

Clean feature addition. The reasoning dialect abstraction is well-structured, validation is thorough, and test coverage is strong across request validation, response extraction, dialect fallback, size limits, and the end-to-end integration path. The resolve_vllm_reasoning field-priority logic correctly handles all combinations of current/deprecated/null/empty/malformed field states.

One medium finding on the response path.

Severity Count
Medium 1

Comment thread apis/src/openai/translation/chat_completions.rs Outdated
Signed-off-by: Shabana Baig <43451943+s-akhtar-baig@users.noreply.github.com>
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