Merge pull request #1929 from NousResearch/hermes/hermes-b29f73b2

feat: inject model and provider into system prompt
This commit is contained in:
Teknium 2026-03-18 04:18:41 -07:00 committed by GitHub
commit 7c7feaa033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2084,6 +2084,10 @@ class AIAgent:
timestamp_line = f"Conversation started: {now.strftime('%A, %B %d, %Y %I:%M %p')}"
if self.pass_session_id and self.session_id:
timestamp_line += f"\nSession ID: {self.session_id}"
if self.model:
timestamp_line += f"\nModel: {self.model}"
if self.provider:
timestamp_line += f"\nProvider: {self.provider}"
prompt_parts.append(timestamp_line)
platform_key = (self.platform or "").lower().strip()