Merge pull request #2240 from myifeng/prompt-device-id

添加设备ID信息到提示词
This commit is contained in:
hrz 2025-09-16 18:21:02 +08:00 committed by GitHub
commit 83b88eeaa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -67,6 +67,7 @@
<context>
【重要!以下信息已实时提供,无需调用工具查询,请直接使用:】
- **设备ID:** {{device_id}}
- **当前时间:** {{current_time}}
- **今天日期:** {{today_date}} ({{today_weekday}})
- **今天农历:** {{lunar_date}}

View file

@ -224,6 +224,7 @@ class PromptManager:
local_address=local_address,
weather_info=weather_info,
emojiList=EMOJI_List,
device_id=device_id,
)
device_cache_key = f"device_prompt:{device_id}"
self.cache_manager.set(