You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Repository navigation
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
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
Activity
Pass in copilot extra headers when analyzing output packages
jhrozek commentedon Dec 14, 2024
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.