Skip to content

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

Open

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
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