이미지 프롬프트 생성 켜기 (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

@@ -256,4 +256,5 @@ launchctl bootout gui/$(id -u)/com.ollama.serve; sleep 3; launchctl bootstrap gu
- 원인: Windows에서 한 이미지 설정은 Windows WebUI DB에만 들어감. Mac WebUI DB는 `image_generation.enable=false`, 엔진 `openai`, 주소·노드 비어 있음 (`podman exec open-webui python3 …` 로 확인)
- 해결: Mac `src/platform/mac/20_webui_image_sync.sh` (Windows와 같은 python) → ComfyUI (Podman) 관리 → 'Open WebUI와 연결' 실행
- 함수 호출: 스크립트가 WebUI 전체 기본값(`models.default_params.function_calling`)을 `legacy`로 넣음 (관리자가 정한 값이 있으면 그대로). 개인 설정이 '기본값'이면 이 값이 적용됨 (Open WebUI 소스 `main.py`: 전체 기본값 → 모델별 → 요청 값 순서로 덮어씀)
- 한국어로 요청하면 그림이 엉뚱함: SD1.5 계열(DreamShaper8)은 영어 프롬프트 기준 → '이미지 프롬프트 생성'을 켜서 채팅 모델이 영어 프롬프트로 바꾸게 함 (스크립트가 'Open WebUI와 연결' 때 켬, 관리자 → 이미지들 화면에서 끌 수 있음)