Skip to content

openai streaming: stale last_reasoning/last_usage on tool-call steps #232

Closed

Description

@ajianaz

#106, scan 0.7.0 MAJOR. The tool-call branch of complete_streaming returns early without resetting/updating last_reasoning_obj/last_usage_obj — misattributed reasoning to the #196 observer and wrong ledger numbers for that step. Reset both at the top of complete_streaming and assign on every exit path.

Triage

Label: backlog (scan 0.7.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions