183 Commits

Author SHA1 Message Date
086695d898 Bump version: 0.3.11 → 0.3.12 0.3.12 2025-09-04 08:58:28 +01:00
a63668cc93 No markdown formatting, no extra text.
fix(openrouter): handle rate limit errors with OpenWebUI fallback

When OpenRouter returns a 429 error due to rate limiting, the application now attempts to fall back to using an OpenWebUI model instead of returning a default prompt. This provides better resilience when external API limits are exceeded while maintaining functionality through local models.

The changes include:
- Adding RateLimitError import from openai
- Implementing fallback logic in create_prompt_on_openrouter function
- Using OpenWebUI as secondary source for prompts when rate limiting occurs
- Proper error handling and logging for both primary and fallback scenarios

This change improves the robustness of prompt generation by ensuring that users receive generated content even when external services are temporarily unavailable due to rate limits. The fallback mechanism prioritizes configured local models if available, with a final default prompt as backup.

The implementation follows the existing pattern of using random selection from configured OpenWebUI models and includes comprehensive error handling for both primary and fallback operations. This ensures that all failure modes are gracefully handled while maintaining backward compatibility.
2025-09-04 08:58:24 +01:00
06d3a64bb9 Bump version: 0.3.10 → 0.3.11 0.3.11 2025-09-02 13:41:43 +01:00
d7c25373bd clear vram on comfyui 2025-09-02 12:19:38 +01:00
006c88b084 Bump version: 0.3.9 → 0.3.10 0.3.10 2025-09-01 13:22:20 +01:00
e7df200f8c add new venv to gitignore 2025-09-01 13:22:17 +01:00
506dece377 **refactor(comfyui.py): improve model selection logic**
Refactor `get_available_models` to handle multiple models and improve error handling. Adjust `select_model` to support configurable workflows and fallbacks.
2025-09-01 13:19:28 +01:00
12af531718 Bump version: 0.3.8 → 0.3.9 0.3.9 2025-08-13 09:35:48 +01:00
efefdde70d fix flux 2025-08-13 09:35:42 +01:00
918e37e077 Bump version: 0.3.7 → 0.3.8 0.3.8 2025-08-12 15:21:26 +01:00
f5427d18ed revert blocking image gen 2025-08-12 15:21:23 +01:00
34f8a05035 Bump version: 0.3.6 → 0.3.7 0.3.7 2025-08-12 15:17:34 +01:00
82f29a4fde block generation if image in queue 2025-08-12 15:17:02 +01:00
ad814855ab Bump version: 0.3.5 → 0.3.6 0.3.6 2025-08-12 15:03:57 +01:00
1b75417360 update the queue 2025-08-12 15:03:50 +01:00
9f3cbf736a Bump version: 0.3.4 → 0.3.5 0.3.5 2025-08-12 14:45:40 +01:00
3e46b3363b working queue logic 2025-08-12 14:15:23 +01:00
ff5dfbcbce show queue count 2025-08-12 13:02:38 +01:00
14e69f7608 initial qwen support 2025-08-12 12:08:12 +01:00
1468ac4bbe Bump version: 0.3.3 → 0.3.4 0.3.4 2025-08-09 09:38:52 +01:00
2e13ecfa2f feat(prompt): implement robust error handling and fallback mechanism
Add retry logic and fallback mechanism to prompt generation. When OpenWebUI
fails, the system now attempts a second try before falling back to OpenRouter.
Proper error handling and logging have been added throughout the prompt
generation flow to ensure more reliable operation.
2025-08-09 09:38:46 +01:00
fa59f3cfeb Bump version: 0.3.2 → 0.3.3 0.3.3 2025-07-30 09:22:31 +01:00
fdd2893255 pass the version to all templates 2025-07-30 09:22:28 +01:00
d40f6a95b0 Bump version: 0.3.1 → 0.3.2 0.3.2 2025-07-30 09:03:57 +01:00
f381fbc9c7 fix scheduled task 2025-07-30 09:03:46 +01:00
57bb0fed5b Bump version: 0.3.0 → 0.3.1 0.3.1 2025-07-29 14:31:05 +01:00
6e39c34a58 update the openapi folder name 2025-07-29 14:27:50 +01:00
e2acd2dcd6 openweb ui client rather than litellm and ollama 2025-07-29 14:25:13 +01:00
aa75646d5f Bump version: 0.2.22 → 0.3.0 0.3.0 2025-07-29 13:26:07 +01:00
ba2b943c0d Bump version: 0.2.21 → 0.2.22 0.2.22 2025-07-29 13:16:37 +01:00
5c45b8b832 Bump version: 0.2.20 → 0.2.21 0.2.21 2025-07-29 13:14:37 +01:00
9462888701 Bump version: 0.2.19 → 0.2.20 0.2.20 2025-07-29 12:48:10 +01:00
bd1bb98160 working openrouter and better create_image page formatting 2025-07-29 12:47:55 +01:00
76e33ea523 initial openrouter support 2025-07-29 11:51:29 +01:00
d80cf9473a Bump version: 0.2.18 → 0.2.19 0.2.19 2025-07-28 13:35:34 +01:00
62ee224736 Bump version: 0.2.17 → 0.2.18 0.2.18 2025-07-28 13:33:00 +01:00
410ed18526 Bump version: 0.2.16 → 0.2.17 0.2.17 2025-07-28 13:27:57 +01:00
d29badd0fe serve favourites.json file 2025-07-28 13:27:52 +01:00
82f93ae557 Bump version: 0.2.15 → 0.2.16 0.2.16 2025-07-18 14:05:35 +01:00
651a8b364d Bump version: 0.2.14 → 0.2.15 0.2.15 2025-07-18 13:59:12 +01:00
43f9fcf276 add bump and push 2025-07-18 13:59:06 +01:00
095a0e66ae readme.md :) 2025-07-18 13:58:18 +01:00
aa8e1d1701 refactor(ui): implement base template and shared CSS
Introduce a `base.html` template to establish a common structure for all pages using Jinja2 template inheritance. This eliminates redundant HTML boilerplate across multiple files.

Additionally, common CSS rules have been extracted from individual templates and consolidated into a single `static/css/main.css` file. All pages now link to this shared stylesheet.

This refactoring significantly reduces code duplication, improves maintainability, and ensures a consistent user interface.
2025-07-18 13:56:38 +01:00
31b373b34a Bump version: 0.2.13 → 0.2.14 0.2.14 2025-07-10 17:12:23 +01:00
8665ab431c rework version 2025-07-10 17:12:14 +01:00
1b528a4277 new version 2025-07-10 17:11:09 +01:00
6210b5de7d updated toml 2025-07-10 17:10:00 +01:00
ab32c8032c add and update version to docker image 2025-07-10 17:08:58 +01:00
43ce8e1b89 Bump version: 0.2.10 → 0.2.11 0.2.11 2025-07-10 16:59:03 +01:00
826e91e7e2 Bump version: 0.2.9 → 0.2.10 0.2.10 2025-07-10 16:58:56 +01:00