feat: low-latency debounce, context logs, and stable draw/upload config
Some checks failed
Pre-commit / run (ubuntu-latest) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_en (ubuntu-latest, 3.10) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_zh (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.12) (push) Has been cancelled

This commit is contained in:
2026-03-03 13:38:18 +08:00
parent 1f28dc4630
commit 01c32be6ea
5 changed files with 145 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ async def auto_draw_preview(
"""
try:
logger.info("[作图] 开始 customer=%s image=%s", customer_id, image_url)
from services.service_gemini import GeminiExtractV2Service # type: ignore
from services.service_gemini_stable import GeminiExtractStableService # type: ignore
from services.service_tuhui_upload import upload_to_tuhui # type: ignore
except Exception as e:
logger.error("[作图] 依赖加载失败: %s", e)
@@ -56,7 +56,7 @@ async def auto_draw_preview(
logger.info("[作图] 原图下载完成 size=%s", len(resp.content))
logger.info("[作图] Gemini 生成中")
service = GeminiExtractV2Service()
service = GeminiExtractStableService()
ok_extract, msg_extract, _ = await service.extract_pattern(
input_path=input_path,
output_path=output_path,