205 Commits

Author SHA1 Message Date
3e379e32cd Bump version: 0.5.5 → 0.5.6 0.5.6 2025-11-02 10:24:26 +00:00
c3eaf7f639 Fix flux workflow 2025-11-02 10:24:17 +00:00
c27b2c8aba Bump version: 0.5.4 → 0.5.5 0.5.5 2025-10-31 21:54:24 +00:00
86efefb490 refactor(libs): update imports to use extracted build_user_content 2025-10-31 21:54:21 +00:00
b7a2516dd4 Bump version: 0.5.3 → 0.5.4 0.5.4 2025-10-31 16:16:51 +00:00
9e3731bfdc feat(config): add automatic config file creation from sample
- Modify load_config function to copy user_config.cfg from user_config.cfg.sample if it doesn't exist
- Update README.md to reflect new features and configuration options, including web-based settings and job queue management
2025-10-31 16:15:42 +00:00
854732b1c2 Merge branch 'secondtopic' 2025-10-31 16:08:41 +00:00
6172fb4f73 refactor(libs): extract build_user_content function to avoid duplication
Move the logic for building user content, including topic selection and recent prompts avoidance, into a shared function in generic.py. Update openrouter.py and openwebui.py to use this new function instead of duplicating code.
2025-10-31 16:08:12 +00:00
6a6802472c
Merge pull request #1 from karl0ss/secondtopic
Secondtopic
2025-10-31 15:32:03 +00:00
aa7092a7ed Bump version: 0.5.2 → 0.5.3 0.5.3 2025-10-31 15:31:20 +00:00
435b687585 20 words 2025-10-31 15:31:13 +00:00
0707b031f9 Bump version: 0.5.1 → 0.5.2 0.5.2 2025-10-31 15:20:24 +00:00
79106c3104 Bump version: 0.5.0 → 0.5.1 0.5.1 2025-10-31 15:20:17 +00:00
d8b8f14ba4 up wored to 20 2025-10-31 15:20:06 +00:00
e8ec30fc73 Secondary topic and config updates 2025-10-31 15:14:19 +00:00
7f599ac65a Bump version: 0.4.0 → 0.5.0 0.5.0 2025-10-30 17:16:20 +00:00
0613678d50 Bump version: 0.3.14 → 0.4.0 0.4.0 2025-10-30 17:16:05 +00:00
bb4adbff2c feat(openrouter): add support for listing and using free OpenRouter models
Add a new configuration option `list_all_free_models` to enable fetching and displaying free models from OpenRouter. Enhance model loading functions to include free models when enabled, and implement fallback logic in prompt generation to try alternative models if the primary one fails. Update the UI to display free models in a separate optgroup.
2025-10-30 17:15:59 +00:00
f15c83ebaa feat: add Qwen workflow support and enhance model validation
- Add extraction logic for Qwen workflow metadata in PNG files
- Improve OpenRouter model selection with validation and fallback to free/configured models
- Remove outdated Flux workflow file
- Update Qwen workflow configuration with new parameters and simplified structure
2025-10-30 16:38:52 +00:00
5c09bcd9e8 Bump version: 0.3.13 → 0.3.14 0.3.14 2025-09-20 13:56:53 +01:00
948cf0e253 Bump version: 0.3.12 → 0.3.13 0.3.13 2025-09-19 22:17:59 +01:00
d0ce0d6cd8 fix(server): add empty string parameter to create_prompt_with_random_model call 2025-09-19 22:17:39 +01:00
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