fix: validate OpenAI API key format and improve error handling

This commit is contained in:
Tanmay Deep Sharma
2026-01-19 17:46:15 +00:00
committed by root
parent e13e3c873a
commit 4c36cea89d
4 changed files with 63 additions and 9 deletions
@@ -184,7 +184,9 @@
"GENERATING": "Generating...",
"CANCEL": "Cancel"
},
"GENERATE_ERROR": "There was an error processing the content, please verify your OpenAI API key and try again"
"GENERATE_ERROR": "There was an error processing the content, please verify your OpenAI API key and try again",
"INVALID_API_KEY_ERROR": "Your OpenAI API key is invalid.",
"GO_TO_SETTINGS": "Update key"
},
"DELETE": {
"BUTTON_TEXT": "Delete",