Invalid API Model Configuration This title captures the key technical issue: - Indicates a specific API model configuration problem - Uses technical terminology - Highlights the core error of an invalid model name - Concise and descriptive for developers

Resolved 💬 2 comments Opened Jun 20, 2025 by mohamedelleuch777 Closed Jul 2, 2025

Bug Description

check the project. it was working. now years passed. can you make it work again??

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

check the project. it was working. now years passed. can you make it work again??

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

refactor the project

⎿  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.30
  • Feedback ID: a14c774e-4ad5-4602-9484-d1d796818aa4

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"system: Invalid model name\"}}\n    at h6.generate (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1302:12578)\n    at Pw.makeStatusError (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:2082)\n    at Pw.makeRequest (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async M11.showErrors (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:22444)\n    at async M11 (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:12346)\n    at async _E2 (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:22290)\n    at async file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:17419\n    at async nt1 (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:5121)\n    at async Ku (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:17389)","timestamp":"2025-06-20T17:59:02.818Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"system: Invalid model name\"}}\n    at h6.generate (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1302:12578)\n    at Pw.makeStatusError (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:2082)\n    at Pw.makeRequest (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async M11.showErrors (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:22444)\n    at async M11 (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:12346)\n    at async _E2 (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:22290)\n    at async file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:17419\n    at async nt1 (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:5121)\n    at async Ku (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:17389)","timestamp":"2025-06-20T17:59:23.297Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"system: Invalid model name\"}}\n    at h6.generate (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1302:12578)\n    at Pw.makeStatusError (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:2082)\n    at Pw.makeRequest (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1317:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async M11.showErrors (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:22444)\n    at async M11 (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:12346)\n    at async _E2 (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:22290)\n    at async file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:17419\n    at async nt1 (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:5121)\n    at async Ku (file:///home/mohamedelleuch/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1672:17389)",

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗