# How to extract GPT-5 reasoning summaries with @langchain/openai?

**URL:** <https://forum.langchain.com/t/how-to-extract-gpt-5-reasoning-summaries-with-langchain-openai/1802>\
**Category:** LangChain\
**Tags:** js-help\
**Created:** [October 10, 2025, 1:17pm UTC](https://forum.langchain.com/t/how-to-extract-gpt-5-reasoning-summaries-with-langchain-openai/1802 "2025-10-10T13:17:59Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![AMuresan](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@AMuresan](https://forum.langchain.com/u/AMuresan)\
**Post date:** [October 17, 2025, 3:13pm UTC](https://forum.langchain.com/t/how-to-extract-gpt-5-reasoning-summaries-with-langchain-openai/1802/14 "2025-10-17T15:13:08Z")

</div>

thank you so much for the help, sadly it looks like the include raw argument is hard coded to false:

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/langchain/original/2X/d/d2826dd40ffbd9580ff9e34a87ae8615b4b9f6f6.png)

do you have an example of where to pass the AIMessage through?

---

_[View the full topic](https://forum.langchain.com/t/how-to-extract-gpt-5-reasoning-summaries-with-langchain-openai/1802)._
