Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
fe7610d3
"tests/vscode:/vscode.git/clone" did not exist on "0cbefefac3363666ea2f1b1f730a019214a8b3d4"
Commit
fe7610d3
authored
Mar 08, 2024
by
Timothy J. Baek
Browse files
fix: disable dall-e image generation w/o key
parent
0221acd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/lib/components/chat/Settings/Images.svelte
src/lib/components/chat/Settings/Images.svelte
+3
-0
No files found.
src/lib/components/chat/Settings/Images.svelte
View file @
fe7610d3
...
@@ -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;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment