Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Key Not Saving in Keychain - OpenAI Chat Extension #1252

Open
peixinshen opened this issue Aug 23, 2024 · 1 comment
Open

API Key Not Saving in Keychain - OpenAI Chat Extension #1252

peixinshen opened this issue Aug 23, 2024 · 1 comment

Comments

@peixinshen
Copy link

Thank you for developing and maintaining this great extension!

I am using the "OpenAI Chat" extension with PopClip on MacOS Sequoia 15.1. Since the 2024-05-17 update (v133), where the API key is stored in the keychain, the API key cannot save properly. After entering the key in the settings, it appears blank when reopened. Using this extension warns:
Message from OpenAl (code 401): You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth.
I tried to revert the API key type from "secret" back to "string" in Config.ts and found that it resolved the issue.

Could this be a bug, or am I missing the correct way to store the API key in the keychain? Thanks for your help!

@Florianismeandonlyme
Copy link

Same Problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants