Skip to content

text-end chunk/event is never triggered. #21

@mathewsmathai1

Description

@mathewsmathai1

Observed an issue where text-end event is never triggered.

Works fine if I am using @ai-sdk/openai directly without helicone.

I don't think this is restricted to model provider because I was able to reproduce the same issue with anthropic.

To reproduce the issue, instruct the agent to send a message before making any tool calls.
"Let the user know before executing a tool" or something along that line should work.

Why is this a problem?

  • Message ids do not change and multiple text messages from the agent get merged into one.

And I tried using '@ai-sdk/openai' as an alternative but requests keep failing saying missing messages array. But that issues goes away as soon as I switch to @helicone/ai-sdk-provider. I mean since helicone claims to be compatible with openai packages, I am unsure why it doesn't work with @ai-sdk/openai.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions