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

fix: update key validation to work with OpenAI's new project keys #98

Merged
merged 1 commit into from
May 12, 2024

Conversation

AshishGapat
Copy link
Contributor

@AshishGapat AshishGapat commented May 10, 2024

fixes #97

OpenAI has introduced project keys as the new default over user keys (See: https://help.openai.com/en/articles/9186755-managing-your-work-in-the-api-platform-with-projects). This was a breaking change for those with old 'user keys', causing the validation to fail.

Change itself was simple, consisting of 1 line at /src/utils/apikey.ts

Motivation

Solution

Checklist

  • Tested in Chrome
  • Tested in Safari

fixes paradigmxyz#97

OpenAI has introduced project keys as the new default over user keys (See: https://help.openai.com/en/articles/9186755-managing-your-work-in-the-api-platform-with-projects). This was a breaking change for those with old 'user keys', causing the validation to fail. 

Change itself was simple, consisting of 1 line at /src/utils/apikey.ts
Copy link

vercel bot commented May 10, 2024

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

Name Status Preview Updated (UTC)
flux ✅ Ready (Inspect) Visit Preview May 10, 2024 1:10pm

@transmissions11 transmissions11 changed the title Update key validation to work with OpenAI's new project keys fix: update key validation to work with OpenAI's new project keys May 12, 2024
@transmissions11 transmissions11 merged commit b99eb74 into paradigmxyz:main May 12, 2024
2 checks passed
@AshishGapat AshishGapat deleted the patch-1 branch May 12, 2024 23:29
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.

fix:
2 participants