이미지 프롬프트 생성 켜기 (Windows·Mac)

- comfyui.env에 ENABLE_IMAGE_PROMPT_GENERATION=true
- 이미지 설정 맞춤(python): 'Open WebUI와 연결'·처음 설정 때 image_generation.prompt.enable 기록
  (평소 기동·재시작 때는 화면에서 바꾼 값을 그대로 둠)
- 한국어 요청을 채팅 모델이 영어 그림 프롬프트로 다시 써서 ComfyUI로 보냄

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HnDmXrFqktWwYa1cuJRAVZ
This commit is contained in:
2026-11-05 07:00:34 +00:00
parent 6565456566
commit 932f254d16
7 changed files with 13 additions and 5 deletions

View File

@@ -70,6 +70,7 @@ if e.get('IMAGE_GENERATION_ENGINE', '').lower() == 'comfyui':
if force:
want['image_generation.enable'] = True
want['image_generation.engine'] = 'comfyui'
if e.get('ENABLE_IMAGE_PROMPT_GENERATION'): want['image_generation.prompt.enable'] = e['ENABLE_IMAGE_PROMPT_GENERATION'].lower() == 'true'
if e.get('IMAGE_GENERATION_MODEL'): want['image_generation.model'] = e['IMAGE_GENERATION_MODEL']
if e.get('IMAGE_SIZE'): want['image_generation.size'] = e['IMAGE_SIZE']
if (e.get('IMAGE_STEPS') or '').isdigit(): want['image_generation.steps'] = int(e['IMAGE_STEPS'])
@@ -80,6 +81,7 @@ if e.get('IMAGE_GENERATION_ENGINE', '').lower() == 'comfyui':
# never set up in WebUI yet (engine still default, no workflow) -> write all generation keys
want['image_generation.enable'] = True
want['image_generation.engine'] = 'comfyui'
if e.get('ENABLE_IMAGE_PROMPT_GENERATION'): want['image_generation.prompt.enable'] = e['ENABLE_IMAGE_PROMPT_GENERATION'].lower() == 'true'
if e.get('IMAGE_GENERATION_MODEL'): want['image_generation.model'] = e['IMAGE_GENERATION_MODEL']
if e.get('IMAGE_SIZE'): want['image_generation.size'] = e['IMAGE_SIZE']
if (e.get('IMAGE_STEPS') or '').isdigit(): want['image_generation.steps'] = int(e['IMAGE_STEPS'])