Skip to content

[Bug]: Copilot Models don't send vision headers with image #13696

@ckoehler

Description

@ckoehler

What happened?

Trying with Claude Sonnet 4 via Github Copilot, I get:

litellm.BadRequestError: Github_copilotException - missing required Copilot-Vision-Request header for vision requests

Zed solved it like this, which links to the Copilot Chat code that does it.

Doesn't look too difficult to port over, I may take a look soon.

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

1.74.9

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions