Skip to content

[BUG] o3-mini token counts not getting correctly sent to Langfuse #4311

@dkindlund

Description

@dkindlund

Describe the bug
When using o3-mini on any ChatFlow or AgentFlow in 2.2.7-patch1, I'm seeing only zero (0) token counts in Langfuse.

To Reproduce
Steps to reproduce the behavior:

  1. Create a ChatFlow using o3-mini
  2. Configure ChatFlow to send trace data to Langfuse
  3. See trace in Langfuse with zero token counts

Expected behavior
I'd expect to see Langfuse traces with accurate token counts.

Screenshots
Image

Setup

  • Installation [docker]
  • Flowise Version [2.2.7-patch1]
  • OS: [Linux]
  • Browser [chrome]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions