Skip to content

vertex: Custom publishers (GLM-5) returning Not Found #944

@tvi

Description

@tvi

Pull request #905 has added custom publishers of (non-google) models in vertex. When you switch into these models in opencode it returns Not Found for all requests.

The underlying issue is that request URL is wrong.
Actual URL: .../publishers/google/zai-org/glm-5-maas:streamGenerateContent?alt=sse
Expected URL: .../publishers/zai-org/models/glm-5-maas:streamGenerateContent?alt=sse
Vertex is returns 404 to all requests.

The problem is in @ai-sdk library which has baseURL hardcoded

Upstream issue tracking it: vercel/ai#12014

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