I am using Langchain with GPT-5.1 reasoning model, but I am having a hard time extracting the reasnoning part from the response, both streaming and invoking mode. I tried the method listed in the official docs, but didn’t work: Models - Docs by LangChain Any help or suggestions will be appreciated!
Thanks!
Make sure you are using the Responses API as described here: ChatOpenAI - Docs by LangChain
I believe your OpenAI organization needs to be verified as well to generate reasoning summaries using their latest models: https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries
Otherwise, feel free to share a snippet to help troubleshoot.