You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Croway (via GitHub)" <gi...@apache.org> on 2026/05/05 14:52:08 UTC
[PR] CAMEL-23425: camel-openai - Add reasoning_content support and generic response header extraction [camel]
Croway opened a new pull request, #22966:
URL: https://github.com/apache/camel/pull/22966
## Summary
- Extract `reasoning_content` from API responses into a `CamelOpenAIReasoningContent` header, supporting thinking models like Qwen3 and DeepSeek-R1
- Add generic `additionalResponseHeader` option to map any extra response field to a named Camel header (e.g. `additionalResponseHeader.reasoning_content=MyHeader`)
- Both simple and agentic (MCP tool loop) non-streaming paths are covered
## Test plan
- [x] `reasoning_content` extracted into built-in header when present
- [x] Empty `content` body preserved when only `reasoning_content` is present
- [x] No header set when `reasoning_content` is absent
- [x] Both inline `<think>` (`CamelOpenAIThinkingContent`) and `reasoning_content` headers populated independently
- [x] `additionalResponseHeader` maps field to custom header name
- [x] Custom header not set when field is absent
- [x] All existing tests pass (`mvn verify` — 10 unit + 18 integration tests green)
_Claude Code on behalf of Federico Mariani_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23425: camel-openai - Add reasoning_content support and generic response header extraction [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22966:
URL: https://github.com/apache/camel/pull/22966#issuecomment-4380626050
<!-- ci-tested-modules -->
:test_tube: **CI tested the following changed modules:**
- `catalog/camel-catalog`
- `components/camel-ai/camel-openai`
- `dsl/camel-endpointdsl`
- `test-infra/camel-test-infra-openai-mock`
:warning: **Some tests are disabled on GitHub Actions** (`@DisabledIfSystemProperty(named = "ci.env.name")`) and require manual verification:
- `components/camel-ai/camel-openai`: 6 test(s) disabled on GitHub Actions
<details><summary>All tested modules (14 modules)</summary>
- Camel :: AI :: LangChain4j :: Agent
- Camel :: AI :: LangChain4j :: Tools
- Camel :: AI :: OpenAI
- Camel :: Catalog :: Camel Catalog
- Camel :: Endpoint DSL
- Camel :: JBang :: MCP
- Camel :: JBang :: Plugin :: Route Parser
- Camel :: JBang :: Plugin :: TUI
- Camel :: JBang :: Plugin :: Validate
- Camel :: Launcher :: Container
- Camel :: Test Infra :: All test services
- Camel :: Test Infra :: OpenAI Mock
- Camel :: YAML DSL :: Validator
- Camel :: YAML DSL :: Validator Maven Plugin
</details>
---
:gear: [View full build and test results](https://github.com/apache/camel/actions/runs/25383790750)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23425: camel-openai - Add reasoning_content support and generic response header extraction [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22966:
URL: https://github.com/apache/camel/pull/22966#issuecomment-4380438458
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23425: camel-openai - Add reasoning_content support and generic response header extraction [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway merged PR #22966:
URL: https://github.com/apache/camel/pull/22966
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org