"""정보 조회와 발행 payload가 같은 조건으로 소개문 요약을 사용한다.""" from services.external import gemini_text async def summarize_intro(key: str, value: str | None) -> str | None: # 짧은 소개까지 유료 호출하지 않는다. text = (value or "").strip() if key not in {"intro", "room_intro"} or len(text) <= 80: return None return await gemini_text.summarize_text(text)