Invalid OpenAI API Model Name Request

Resolved 💬 2 comments Opened Jul 3, 2025 by sy-james-jeong Closed Jul 3, 2025

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

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.41
  • Feedback ID: f4622432-aaa9-4554-986f-68a4ecfb9e95

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at JI (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n    at file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9038\n    at Q (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n    at _X (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8184)\n    at w_ (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7265)\n    at U9 (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11432)","timestamp":"2025-07-03T01:28:32.240Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"system: Invalid model name\"}}\n    at J5.generate (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:12578)\n    at Tq.makeStatusError (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:2100)\n    at Tq.makeRequest (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async WM2.zA1.showErrors (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:23051)\n    at async zA1 (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:12633)\n    at async WM2 (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:22899)\n    at async file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:18023\n    at async EAA (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:5121)\n    at async tu (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:17993)","timestamp":"2025-07-03T01:28:36.308Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"system: Invalid model name\"}}\n    at J5.generate (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:12578)\n    at Tq.makeStatusError (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:2100)\n    at Tq.makeRequest (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async WM2.zA1.showErrors (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:23051)\n    at async zA1 (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:12633)\n    at async WM2 (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:22899)\n    at async file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:18023\n    at async EAA (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:5121)\n    at async tu (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:17993)","timestamp":"2025-07-03T01:41:37.874Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"system: Invalid model name\"}}\n    at J5.generate (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1315:12578)\n    at Tq.makeStatusError (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:2100)\n    at Tq.makeRequest (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async WM2.zA1.showErrors (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:23051)\n    at async zA1 (file:///Users/seongyeopjeong/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1701:12633)\n    at async WM2 (file:///Users/seongyeopjeong

Note: Error logs were truncated.

View original on GitHub ↗

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