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

Remove length check for sk-proj keys #100

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

Conversation

young-mmfm
Copy link

Motivation

Context: #99

I recently created an OpenAI API key, and it has a length of 164 characters, so the isValidAPIKey check doesn't work correctly.

Solution

Since I couldn't quickly find documentation from OpenAI on acceptable lengths of API keys and since OpenAI is free to change the key length whenever they want, I just removed the length check. I kept the length check for sk- keys since I don't know if those are definitely restricted to a certain length.

Checklist

  • [x ] Tested in Chrome
  • [ x] Tested in Safari

Copy link

vercel bot commented Oct 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
flux ✅ Ready (Inspect) Visit Preview Oct 15, 2024 5:32am

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.

1 participant