From 651004edfcce03aab8c045887859aee894a1892b Mon Sep 17 00:00:00 2001 From: happybell80 Date: Tue, 9 Sep 2025 20:49:31 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EC=8B=9C=EA=B0=84=20=EC=9D=B8=EC=8B=9D?= =?UTF-8?q?=20=EB=B0=8F=20=EC=9A=94=EC=9D=BC=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84=20=ED=8A=B8=EB=9F=AC=EB=B8=94=EC=8A=88?= =?UTF-8?q?=ED=8C=85=20=EB=AC=B8=EC=84=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ybell80_시간인식_요일추가_구현.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 troubleshooting/250909_happybell80_시간인식_요일추가_구현.md diff --git a/troubleshooting/250909_happybell80_시간인식_요일추가_구현.md b/troubleshooting/250909_happybell80_시간인식_요일추가_구현.md new file mode 100644 index 0000000..4c41a0a --- /dev/null +++ b/troubleshooting/250909_happybell80_시간인식_요일추가_구현.md @@ -0,0 +1,18 @@ +# 250909 LLM 시간 인식 및 요일 추가 구현 + +## 문제 +- 로빙이 현재 시간을 모름 (2025년 9월인데 2024년 5월로 답변) +- 요일 정보 없음 +- 한국시간(KST) 명시 필요 + +## 해결 +1. **gemini_handler.py 수정** + - datetime import 추가 + - 한글 요일 배열 생성: ['월요일', '화요일', '수요일', '목요일', '금요일', '토요일', '일요일'] + - `_get_system_prompt()`에 시간 컨텍스트 주입 + - 포맷: "현재 시간: 2025년 09월 09일 화요일 20시 46분 (한국시간)" + +## 교훈 +- 최소 수정으로 최대 효과 (6줄만 추가) +- 예외처리 불필요 (datetime.now()는 실패 안함) +- Docker/APScheduler 이미 Asia/Seoul 설정되어 있어 pytz 불필요 \ No newline at end of file