Skip to content

LangChain: gen_ai.response.finish_reasons is missing for the OpenAI Responses API #26762

Done

Description

@RulaKhaled

We read gen_ai.response.finish_reasons from generationInfo.finish_reason. Chat Completions sets it there, but ChatOpenAI with the Responses API only puts finish_reason on message.response_metadata. Spans from those calls record no finish reason.

Since @langchain/openai 1.8.5 that field carries the raw response status (completed, incomplete) alongside a new normalized_finish_reason.

Activity

  1. self-assigned this
    on Nov 23, 2026
  2. linear-code commented on Nov 23, 2026

    @linear-code
  3. github-actions commented on Nov 25, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #26800, which was included in the 11.18.0 release.

  4. added a commit that references this issue on Nov 26, 2026
    7e87b82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions