mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 23:24:44 +02:00
Revert date injection from system prompt
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
825d93e52d
commit
69b749930c
1 changed files with 2 additions and 4 deletions
|
|
@ -3,7 +3,6 @@
|
|||
import logging
|
||||
import re
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime, timezone
|
||||
from enum import Enum, auto
|
||||
from typing import Optional
|
||||
|
||||
|
|
@ -158,11 +157,10 @@ class MessageRouter:
|
|||
# Get conversation history
|
||||
history = await self.history.get_history_for_llm(message.sender_id)
|
||||
|
||||
# Get system prompt from config, inject current date
|
||||
# Get system prompt from config
|
||||
system_prompt = ""
|
||||
if getattr(self.config.llm, 'use_system_prompt', True):
|
||||
today = datetime.now(timezone.utc).strftime("%A, %B %d, %Y")
|
||||
system_prompt = f"{self.config.llm.system_prompt}\nToday's date is {today}."
|
||||
system_prompt = self.config.llm.system_prompt
|
||||
|
||||
try:
|
||||
response = await self.llm.generate(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue