Skip to content

Q: How can I set header for Convex Agent? #165

@mrekh

Description

@mrekh

I want to use the Clause 4/4.5 1M context window, but according to the AI Gateway documentation, I need to pass a header. How can I set this header for my Convex Agent?

Claude Sonnet 4.5 now supports a 1M-token context (beta); opt in by sending the anthropic-beta: context-1m-2025-08-07 header.

Source: https://vercel.com/ai-gateway/models/claude-sonnet-4.5

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