Browse Source

fix: image prompt gen template

Timothy Jaeryang Baek 3 months ago
parent
commit
3502e09d9f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      backend/open_webui/routers/tasks.py

+ 4 - 0
backend/open_webui/routers/tasks.py

@@ -90,6 +90,10 @@ async def update_task_config(
         form_data.TITLE_GENERATION_PROMPT_TEMPLATE
     )
 
+    request.app.state.config.IMAGE_PROMPT_GENERATION_PROMPT_TEMPLATE = (
+        form_data.IMAGE_PROMPT_GENERATION_PROMPT_TEMPLATE
+    )
+
     request.app.state.config.ENABLE_AUTOCOMPLETE_GENERATION = (
         form_data.ENABLE_AUTOCOMPLETE_GENERATION
     )