-
Notifications
You must be signed in to change notification settings - Fork 4.4k
fix: widen MOIM allowlist to apply fix_conversation repairs for orphaned tool blocks #7684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
81bcac5
0036b81
698d417
59d4485
ec45e8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,13 +35,23 @@ pub async fn inject_moim( | |
| let has_unexpected_issues = issues.iter().any(|issue| { | ||
| !issue.contains("Merged consecutive user messages") | ||
| && !issue.contains("Merged consecutive assistant messages") | ||
| && !issue.contains("Merged text content") | ||
| && !issue.contains("Removed orphaned tool response") | ||
| && !issue.contains("Removed orphaned tool request") | ||
| && !issue.contains("Removed empty message") | ||
| && !issue.contains("Removed leading assistant message") | ||
| && !issue.contains("Removed trailing assistant message") | ||
|
wpfleger96 marked this conversation as resolved.
Comment on lines
+42
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Allowlisting Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Allowlisting Useful? React with 👍 / 👎.
Comment on lines
+42
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Allowing Useful? React with 👍 / 👎. |
||
| }); | ||
|
|
||
| if has_unexpected_issues { | ||
| tracing::warn!("MOIM injection caused unexpected issues: {:?}", issues); | ||
| return conversation; | ||
| } | ||
|
|
||
| if !issues.is_empty() { | ||
| tracing::info!("MOIM injection applied conversation fixes: {:?}", issues); | ||
| } | ||
|
|
||
| return fixed; | ||
| } | ||
| conversation | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.