mnikonov / gpt-labs

Welcome to GTP Labs, the ultimate application for unlocking the power of OpenAI's API for Windows.
Apache License 2.0
37 stars 12 forks source link

[FEATURE] - Add extended validation of OpenAI ApiKey and OrganizationID #36

Closed mnikonov closed 1 year ago

mnikonov commented 1 year ago

Description

With in application should be provided a way to validate OpenAI ApiKey and OrganizationID

Solution

  1. To text inputs should be added plece holders in format "Enter key in format sk-***"
  2. Should be added regular expression validation that would check all necessary prefixes and keys length
  3. On attempt to save authorization information app should send OpenAi request that would validate entered credentials and display error message