Skip to content

Fix: Inject speaker name into conversation context for LLMs - #3

Open
petep0p wants to merge 1 commit into
EuleMitKeule:masterfrom
petep0p:fix-conversation-speaker-injection
Open

Fix: Inject speaker name into conversation context for LLMs#3
petep0p wants to merge 1 commit into
EuleMitKeule:masterfrom
petep0p:fix-conversation-speaker-injection

Conversation

@petep0p

@petep0p petep0p commented Feb 8, 2026

Copy link
Copy Markdown

Prepends recognized speaker name directly to user message text instead of using extra_system_prompt, ensuring compatibility with all chat templates (Mistral, Llama, etc).

the extra_system_prompt was not getting added where the Mistral LLM was able to see it - probably outside the chat template tags. This change ensures it is within the chat template.

Prepends recognized speaker name directly to user message text instead of using extra_system_prompt, ensuring compatibility with all chat templates (Mistral, Llama, etc).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant