Skip to content

fix: bug: system error messages injected with dynamic role, can appear - #2263

Closed
dieutx wants to merge 1 commit into
NousResearch:mainfrom
dieutx:fix/issue-2228
Closed

fix: bug: system error messages injected with dynamic role, can appear#2263
dieutx wants to merge 1 commit into
NousResearch:mainfrom
dieutx:fix/issue-2228

Conversation

@dieutx

@dieutx dieutx commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix for #2228: bug: system error messages injected with dynamic role, can appear as role=user

Closes #2228

Test plan

  • Run pytest to confirm no regressions

System error messages injected during response parsing were using a
dynamically chosen role that could result in role="user", misattributing
system behavior to the user. Always use role="assistant" instead.

Closes NousResearch#2228
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.

bug: system error messages injected with dynamic role, can appear as role=user

1 participant