RamiAwar / dataline

Chat with your data - AI data analysis and visualization on CSV, Postgres, MySQL, Snowflake, SQLite...
https://dataline.app
GNU General Public License v3.0
502 stars 49 forks source link

S6.3 Add validation for OpenAI key or gracefully handle invalid errors #109

Closed anthony2261 closed 4 months ago

anthony2261 commented 4 months ago

Three issues:

anthony2261 commented 4 months ago

From discord: We can validate the api key by calling the api to list the models, if it fails -> invalid key, if it succeeds -> we have a list of models available for the user and are able to know if gpt 4 is accessible