You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: simplify image response with MARKDOWN_EMBED_IMAGES config
Remove Open WebUI integration (OPENWEBUI_BASE_URL, OPENWEBUI_API_KEY,
SAVE_IMAGES_LOCALLY). Images are now always stored locally.
New approach for Open WebUI: Set MARKDOWN_EMBED_IMAGES=true to return
base64 data URIs in markdown responses. Open WebUI's
ENABLE_CHAT_RESPONSE_BASE64_IMAGE_URL_CONVERSION will automatically
convert these to file URLs in the user's context.
Changes:
- Add MARKDOWN_EMBED_IMAGES config (default: false)
- Make markdown the default response_format
- Remove openwebui_service.py and related logic
- Simplify storage_service.py
Copy file name to clipboardExpand all lines: CONFIGURATION.md
+7-18Lines changed: 7 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,6 @@ Complete configuration reference for the Image Generation API.
37
37
- Default: `./generated_images`
38
38
- Docker: Use volume mount (e.g., `/app/generated_images`)
39
39
40
-
**`SAVE_IMAGES_LOCALLY`**
41
-
- Whether to save images to local storage
42
-
- Default: `true`
43
-
- Set to `false` if using Open WebUI integration exclusively
44
-
- When `false`, images are only uploaded to Open WebUI (no local backup)
45
-
46
40
**`IMAGE_BASE_URL`**
47
41
- Public base URL for serving images
48
42
- Default: `http://localhost:8000`
@@ -56,19 +50,14 @@ Complete configuration reference for the Image Generation API.
56
50
- Example: `gpt-image-1`, `dall-e-3`
57
51
- Optional - if not set, first available model is used
58
52
59
-
### Open WebUI Integration
60
-
61
-
**`OPENWEBUI_BASE_URL`**
62
-
- Open WebUI instance URL
63
-
- Example: `https://chat.mydomain.com`
64
-
- When set (with API key), images are uploaded to Open WebUI's file storage
65
-
66
-
**`OPENWEBUI_API_KEY`**
67
-
- API key from Open WebUI
68
-
- Get from: Open WebUI Settings > Account > API Keys
69
-
- Required together with `OPENWEBUI_BASE_URL`
53
+
### Response Configuration
70
54
71
-
When both are configured, images are automatically uploaded to Open WebUI. This ensures images work from anywhere - no more URL accessibility issues with Docker or external access.
55
+
**`MARKDOWN_EMBED_IMAGES`**
56
+
- Embed images as base64 data URI in markdown responses
57
+
- Default: `false`
58
+
- When `true`: Returns ``
59
+
- When `false`: Returns ``
60
+
- Set to `true` for Open WebUI integration with `ENABLE_CHAT_RESPONSE_BASE64_IMAGE_URL_CONVERSION`
0 commit comments