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

Add support for Project API Keys (sk-proj-) #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ThatGuySam
Copy link

@ThatGuySam ThatGuySam commented May 6, 2024

OpenAI recently rolled out per project API keys with the following format:

sk-proj-abcdefghijklmnopqrstuvwxyz1234567890abcdef

Although this article doesn't seem to mention this specific format change you can read about it here:
https://help.openai.com/en/articles/9186755-managing-your-work-in-the-api-platform-with-projects

You might be able to create a your own Project API key to verify here:
https://platform.openai.com/api-keys

The current Regex pattern for API Keys only supports the classic keys

sk-abcdefghijklmnopqrstuvwxyz1234567890abcdef

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

Successfully merging this pull request may close these issues.

None yet

1 participant