Adding validation for openai api key #655
adrianhensler
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, if the OPENAI_API_KEY is missing or incorrect, the errors returned may be confusing for new users. I was going to add some validation, but wasn't sure the best place to do so. Using the provided OPENAI_API_KEY to make a call to return valid models seems like a good test.
This was my first thought; just adding it to main.py
Should it be elsewhere? Suggestions or comments before I go further? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions