Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Missing Editor-Version header causing 400 Bad Request when querying for packages in output snippets #335

Closed

Description

@jhrozek
2024-12-13T17:20:10.3dZ [info     ] HTTP Request: POST https://api.enterprise.githubcopilot.com/chat/completions "HTTP/1.1 400 Bad Request" module=_client pathname=/Users/jakub/devel/codegate/venv/lib/python3.12/site-packages/httpx/_client.py

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.

2024-12-13T17:20:10.3dZ [error    ] LiteLLM completion failed openai/gpt-4o (pip install requests
): litellm.BadRequestError: OpenAIException - bad request: missing Editor-Version header for IDE auth module=llmclient pathname=/Users/jakub/devel/codegate/src/codegate/llm_utils/llmclient.py

I thought we fixed this @ptelang ?

Activity

  1. added a commit that references this issue on Dec 14, 2024
    d2d7710
  2. jhrozek commented on Dec 14, 2024

    @jhrozek
    ContributorAuthor

    I thought we fixed this @ptelang ?

    Turns out that we had this fixed for the input pipeline but forgot to pass the headers to the output pipeline. I opened a PR.

  3. self-assigned this
    on Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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