Invalid OpenAI Model Name in API Request

Resolved 💬 1 comment Opened Jul 29, 2025 by Shengguang-Zhou Closed Jul 29, 2025

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error",
"message":"system: Invalid model name"}}

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 1.0.35
  • Feedback ID: 589dac2d-7076-49e8-aef7-3e9032538563

Errors

[{"error":"Error: Failed to check bun permissions\n    at qM5 (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2069:690)\n    at async v2A (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2069:808)\n    at async rw1 (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2079:43)\n    at async file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2465:8378","timestamp":"2025-07-29T21:02:10.490Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"system: Invalid model name\"}}\n    at Z5.generate (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1299:12578)\n    at Jq.makeStatusError (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:2100)\n    at Jq.makeRequest (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async V$2.l11.showErrors (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22790)\n    at async l11 (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:12370)\n    at async V$2 (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22636)\n    at async file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17760\n    at async M1A (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:5121)\n    at async Mu (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17730)","timestamp":"2025-07-29T21:02:12.771Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"system: Invalid model name\"}}\n    at Z5.generate (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1299:12578)\n    at Jq.makeStatusError (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:2100)\n    at Jq.makeRequest (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async V$2.l11.showErrors (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22790)\n    at async l11 (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:12370)\n    at async V$2 (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22636)\n    at async file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17760\n    at async M1A (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:5121)\n    at async Mu (file:///home/a/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17730)","timestamp":"2025-07-29T21:02:20.311Z"}]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗