- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 241
 
Open
Description
The cli seems to now be failing when run against the new 2.0.28 Claude client.
copilot-api start --claude-code
Choose
- claude-sonnet-4.5
 - claude-haiku-4.5
 
Proxy starts but gets model errors.
➜ Listening on: http://localhost:4141/ (all interfaces)
<-- GET /usage
--> GET /usage 200 540ms
<-- GET /favicon.ico
--> GET /favicon.ico 404 0ms
<-- GET /usage
--> GET /usage 200 571ms
<-- GET /usage
--> GET /usage 200 640ms
<-- GET /
--> GET / 200 1ms
<-- GET /
--> GET / 200 1ms
<-- GET /v1/models
--> GET /v1/models 200 0ms
<-- POST /v1/messages?beta=true
<-- POST /v1/messages?beta=true
 ERROR  Failed to create chat completions Response { status: 400,                      9:07:12 am
  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-request-id': '7ae83f55-d8b5-4bd1-9b14-ea0149169a62',
     date: 'Wed, 29 Oct 2025 01:07:12 GMT',
     'content-length': '138',
     'x-github-backend': 'Kubernetes',
     'x-github-request-id': '9DE7:35F1DA:41FF2D1:4DF69A4:690168C0' },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: false,
  redirected: false,
  type: 'basic',
  url: 'https://api.githubcopilot.com/chat/completions' }
 ERROR  Error occurred: Failed to create chat completions                              9:07:12 am
    at createChatCompletions (node_modules/copilot-api/dist/main.js:783:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async handleCompletion (node_modules/copilot-api/dist/main.js:1227:19)
    at async node_modules/copilot-api/dist/main.js:1265:10
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async cors2 (node_modules/hono/dist/middleware/cors/index.js:79:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async logger2 (node_modules/hono/dist/middleware/logger/index.js:38:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async node_modules/hono/dist/hono-base.js:201:25
 ERROR  HTTP error: { error:                                                           9:07:12 am
   { message: 'The requested model is not supported.',
     code: 'model_not_supported',
     param: 'model',
     type: 'invalid_request_error' } }
--> POST /v1/messages?beta=true 400 897ms
<-- POST /v1/messages?beta=true
 ERROR  Failed to create chat completions Response { status: 400,                      9:07:13 am
  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-request-id': 'a44ad06c-0460-47ab-81e7-9bef19f2401e',
     date: 'Wed, 29 Oct 2025 01:07:13 GMT',
     'content-length': '138',
     'x-github-backend': 'Kubernetes',
     'x-github-request-id': '9DE7:35F1DA:41FF361:4DF6A5C:690168C0' },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: false,
  redirected: false,
  type: 'basic',
  url: 'https://api.githubcopilot.com/chat/completions' }
 ERROR  Error occurred: Failed to create chat completions                              9:07:13 am
    at createChatCompletions (node_modules/copilot-api/dist/main.js:783:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async handleCompletion (node_modules/copilot-api/dist/main.js:1227:19)
    at async node_modules/copilot-api/dist/main.js:1265:10
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async cors2 (node_modules/hono/dist/middleware/cors/index.js:79:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async logger2 (node_modules/hono/dist/middleware/logger/index.js:38:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async node_modules/hono/dist/hono-base.js:201:25
 ERROR  HTTP error: { error:                                                           9:07:13 am
   { message: 'The requested model is not supported.',
     code: 'model_not_supported',
     param: 'model',
     type: 'invalid_request_error' } }
--> POST /v1/messages?beta=true 400 352ms
--> POST /v1/messages?beta=true 200 2s
<-- POST /v1/messages?beta=true
<-- POST /v1/messages?beta=true
 ERROR  Failed to create chat completions Response { status: 400,                      9:07:53 am
  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-request-id': 'cfbe4feb-9f25-45df-b423-e8a267ba7721',
     date: 'Wed, 29 Oct 2025 01:07:53 GMT',
     'content-length': '138',
     'x-github-backend': 'Kubernetes',
     'x-github-request-id': '9D46:2B1072:412CE53:4D2B429:690168E9' },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: false,
  redirected: false,
  type: 'basic',
  url: 'https://api.githubcopilot.com/chat/completions' }
 ERROR  Error occurred: Failed to create chat completions                              9:07:53 am
    at createChatCompletions (node_modules/copilot-api/dist/main.js:783:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async handleCompletion (node_modules/copilot-api/dist/main.js:1227:19)
    at async node_modules/copilot-api/dist/main.js:1265:10
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async cors2 (node_modules/hono/dist/middleware/cors/index.js:79:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async logger2 (node_modules/hono/dist/middleware/logger/index.js:38:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async node_modules/hono/dist/hono-base.js:201:25
 ERROR  HTTP error: { error:                                                           9:07:53 am
   { message: 'The requested model is not supported.',
     code: 'model_not_supported',
     param: 'model',
     type: 'invalid_request_error' } }
--> POST /v1/messages?beta=true 400 832ms
<-- POST /v1/messages?beta=true
 ERROR  Failed to create chat completions Response { status: 400,                      9:07:54 am
  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-request-id': 'b033e613-ac37-4a61-b97d-1f63b9b38642',
     date: 'Wed, 29 Oct 2025 01:07:53 GMT',
     'content-length': '138',
     'x-github-backend': 'Kubernetes',
     'x-github-request-id': '9D46:2B1072:412CEFE:4D2B4ED:690168E9' },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: false,
  redirected: false,
  type: 'basic',
  url: 'https://api.githubcopilot.com/chat/completions' }
 ERROR  Error occurred: Failed to create chat completions                              9:07:54 am
    at createChatCompletions (node_modules/copilot-api/dist/main.js:783:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async handleCompletion (node_modules/copilot-api/dist/main.js:1227:19)
    at async node_modules/copilot-api/dist/main.js:1265:10
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async cors2 (node_modules/hono/dist/middleware/cors/index.js:79:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async logger2 (node_modules/hono/dist/middleware/logger/index.js:38:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async node_modules/hono/dist/hono-base.js:201:25
 ERROR  HTTP error: { error:                                                           9:07:54 am
   { message: 'The requested model is not supported.',
     code: 'model_not_supported',
     param: 'model',
     type: 'invalid_request_error' } }
--> POST /v1/messages?beta=true 400 284ms
 ERROR  Failed to create chat completions Response { status: 400,                      9:07:54 am
  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-request-id': 'c09c749a-f321-4f5f-bf75-f513ff05d341',
     date: 'Wed, 29 Oct 2025 01:07:54 GMT',
     'content-length': '138',
     'x-github-backend': 'Kubernetes',
     'x-github-request-id': '9D73:1FC494:43E01EB:4FCCB0E:690168E9' },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: false,
  redirected: false,
  type: 'basic',
  url: 'https://api.githubcopilot.com/chat/completions' }
 ERROR  Error occurred: Failed to create chat completions                              9:07:54 am
    at createChatCompletions (node_modules/copilot-api/dist/main.js:783:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async handleCompletion (node_modules/copilot-api/dist/main.js:1227:19)
    at async node_modules/copilot-api/dist/main.js:1265:10
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async cors2 (node_modules/hono/dist/middleware/cors/index.js:79:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async logger2 (node_modules/hono/dist/middleware/logger/index.js:38:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async node_modules/hono/dist/hono-base.js:201:25
 ERROR  HTTP error: { error:                                                           9:07:54 am
   { message: 'The requested model is not supported.',
     code: 'model_not_supported',
     param: 'model',
     type: 'invalid_request_error' } }
--> POST /v1/messages?beta=true 400 1s
<-- POST /v1/messages?beta=true
 ERROR  Failed to create chat completions Response { status: 400,                      9:07:55 am
  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-request-id': '56623d5e-908e-4669-a3d4-cfe2d3a5ef89',
     date: 'Wed, 29 Oct 2025 01:07:55 GMT',
     'content-length': '138',
     'x-github-backend': 'Kubernetes',
     'x-github-request-id': '9D46:2B1072:412CFF8:4D2B636:690168E9' },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: false,
  redirected: false,
  type: 'basic',
  url: 'https://api.githubcopilot.com/chat/completions' }
 ERROR  Error occurred: Failed to create chat completions                              9:07:55 am
    at createChatCompletions (node_modules/copilot-api/dist/main.js:783:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async handleCompletion (node_modules/copilot-api/dist/main.js:1227:19)
    at async node_modules/copilot-api/dist/main.js:1265:10
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async cors2 (node_modules/hono/dist/middleware/cors/index.js:79:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async logger2 (node_modules/hono/dist/middleware/logger/index.js:38:5)
    at async dispatch (node_modules/hono/dist/compose.js:22:17)
    at async node_modules/hono/dist/hono-base.js:201:25
 ERROR  HTTP error: { error:                                                           9:07:55 am
   { message: 'The requested model is not supported.',
     code: 'model_not_supported',
     param: 'model',
     type: 'invalid_request_error' } }
--> POST /v1/messages?beta=true 400 833ms
Claude Code also shows and error

Metadata
Metadata
Assignees
Labels
No labels