I'm pretty often getting the following error in the command line when using this tool with Claude Code:
ERROR Failed to create chat completions Response { status: 400, 4:17:56 PM
statusText: 'Bad Request',
headers:
Headers { 'content-security-policy': "default-src 'none'; sandbox",
'content-type': 'text/plain; charset=utf-8',
'strict-transport-security': 'max-age=31536000',
'x-content-type-options': 'nosniff',
'x-copilot-api-exp-assignment-context': 'xxx',
'x-request-id': 'xxx',
date: 'Mon, 27 Apr 2026 16:17:55 GMT',
'content-length': '161',
'x-github-backend': 'Kubernetes',
'x-github-request-id': 'xx' },
body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
bodyUsed: false,
ok: false,
redirected: false,
type: 'basic',
url: 'https://api.githubcopilot.com/chat/completions' }
As for the Claude models, I only seem to be able to use opus-4.7 for now. Both opus 4.6 and sonnet give these errors.
I'm pretty often getting the following error in the command line when using this tool with Claude Code:
As for the Claude models, I only seem to be able to use opus-4.7 for now. Both opus 4.6 and sonnet give these errors.