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

hi @Nikfury

have you tired this:

const llm = new ChatOpenAI({ model: "gpt-5", useResponsesApi: true });
const msg = await llm.invoke("Is sport necessary for healthy life?", {
  reasoning: {
    effort: "high",
    summary: "auto" /* summary config if desired */,
  },
});

I have and I’ve been getting this error:

BadRequestError: 400 Your organization must be verified to generate reasoning summaries. Please go to: https://platform.openai.com/settings/organization/general and click on Verify Organization. If you just verified, it can take up to 15 minutes for access to propagate.

Since I am not verified :wink:

1 Like