feat(models): add OpenAI Codex reasoning provider - #40
Merged
Conversation
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.
Summary / 概述
OpenAI / Codexprovider preset for OpenAI Responses-backed Chat Completions gateways.reasoning_effortat the request root for that provider while retaining the nestedchat_template_kwargscompatibility controls.reasoning_content.OpenAI 兼容inline<think>behavior and add regression coverage for both protocols.Validation:
PYTHONPATH=src/backend pytest -q src/backend/tests/llm/test_openai_provider.py src/backend/tests/orchestration/test_structured_reasoning_protocol.py src/backend/tests/api/test_model_connection_probe.py src/backend/tests/services/test_user_model_selection.py— 11 passed.src/hooks/chatStream.tspassed.reasoning_effort=maxproduced bothThinkingBlockandTextBlock; no reasoning text or credentials are included here.git diff --checkpassed. The repository has no rootnpm run preflightscript, so the relevant backend and frontend checks above were used.Related issue / 关联 Issue
Follow-up to #39.
Type of change / 变更类型
document/**,README*.md)examples/**).github/**)Checklist / 检查项
document/en/**anddocument/zh-CN/**where applicable. 双语文档已同步更新(如适用)。 Not applicable; no documentation changed.