Invalid OpenAI Model Name in API Request
Resolved 💬 6 comments Opened Jul 29, 2025 by Shengguang-Zhou Closed Jan 4, 2026
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_module
s/@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"}]
<img width="1912" height="1080" alt="Image" src="https://github.com/user-attachments/assets/fdbc9472-1b29-4cfb-8eb0-0077493a9939" />
<img width="1912" height="1080" alt="Image" src="https://github.com/user-attachments/assets/77935569-af87-42e1-8ddb-b6b356289f61" />
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗