Skip to content

[Platform][Vertex AI] Vertex stream generator error #972

@franzwilding

Description

@franzwilding

When using the vertex ai platform to stream responses, I always get an
Generator passed to yield from was aborted without proper return and is unable to continue error in Symfony\AI\Platform\Result\StreamResult.

I tried to debug it, but I can't figure out the problem. As far as I can tell, the src/Bridge/VertexAi/Gemini/ResultConverter.php is working correctly and when I inspect each data-chunk in convertStream everything looks fine until the llm generation is done. After that, the error is thrown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingPlatformIssues & PRs about the AI Platform componentStatus: Needs Review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions