Repository navigation
feat: per-account drop-system-prompt switch for WorkBuddy chat - #4
Merged
Merged
Conversation
WorkBuddy upstream content screening rejects many third-party system prompts, surfacing as hard failures. Add a per-account switch (on by default, migration 005) that strips caller system/developer messages before provider-native chat; the flag lives in the scheduler pool item and syncs live on PATCH without restarts. Content-screening rejections are now request-level errors (invalid_request): 400 to the caller, no pool failover, no account cooldown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
English
WorkBuddy upstream content screening rejects many third-party system prompts, surfacing as hard errors on requests that could otherwise succeed.
drop_system_promptswitch (migration 005, on by default): callersystem/developermessages are stripped before provider-native chat. The flag mirrors into the scheduler pool item and syncs live onPATCH /api/accounts/{id}— no restarts, no cooldown churn.invalid_request): return 400 to the caller with no pool failover and no account cooldown, so a rejected request no longer rotates through every WorkBuddy account or penalizes healthy ones.中文
WorkBuddy 上游对系统提示词做内容审核,第三方系统提示词经常被拒,本来能成功的请求直接报错。
drop_system_prompt开关(迁移 005,默认开启):请求发出前剥离调用方system/developer消息。标志镜像进调度池,PATCH后即时生效,不重启、不碰冷却。invalid_request)处理:直接返回 400,不再向其他账号无谓切换,也不给账号打冷却。Tests
make checkgreen: store default/update, message stripping, flag on/off paths, no-failover-on-content-rejection, Classify 400 + screening-text cases.