Skip to content

openAI key not working

Bug report

Thanks for filing an issue! Please answer the questions below so I can help you.

  • iTerm2 version: 3.5.0
  • OS version: 13.3.1
  • Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)
  • Attach a debug log, if possible.
  • Attach a screen capture video if it would make the reproduction steps clearer.

PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.

Detailed steps to reproduce the problem

This is odd since the same procedure works fine on my laptop, but not my desktop (a mac mini M2). I created a new openAI API key and pasted into settings.

  1. Enter prompt into codecierge

What happened

Returns the following message: "There was an error: Error from OpenAI: You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys."

What should have happened

returned a response