Commit fe7610d3 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: disable dall-e image generation w/o key

parent 0221acd1
...@@ -165,6 +165,9 @@ ...@@ -165,6 +165,9 @@
if (imageGenerationEngine === '' && AUTOMATIC1111_BASE_URL === '') { if (imageGenerationEngine === '' && AUTOMATIC1111_BASE_URL === '') {
toast.error('AUTOMATIC1111 Base URL is required.'); toast.error('AUTOMATIC1111 Base URL is required.');
enableImageGeneration = false; enableImageGeneration = false;
} else if (imageGenerationEngine === 'openai' && OPENAI_API_KEY === '') {
toast.error('OpenAI API Key is required.');
enableImageGeneration = false;
} else { } else {
enableImageGeneration = !enableImageGeneration; enableImageGeneration = !enableImageGeneration;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment