Commit 371680b
authored
Fix empty system role replacement (#1526)
## PR Checklist
- Required Checks
- [ ] Have you added type definitions?
- [x] Have you tested your changes?
- [ ] Have you checked that it won't break any existing features?
- [ ] If your PR uses models[^1], check the following:
- [ ] Have you checked if it works normally in all models?
- [ ] Have you checked if it works normally in all web, local, and
node-hosted versions? If it doesn't, have you blocked it in those
versions?
- [x] If your PR is highly AI generated[^2], check the following:
- [x] Have you understood what the code does?
- [x] Have you cleaned up any unnecessary or redundant code?
- [x] Is it not a huge change?
- We currently do not accept highly AI generated PRs that are large
changes.
[^1]: Modifies the behavior of prompting, requesting, or handling
responses from AI models.
[^2]: Over 80% of the code is AI generated.
## Summary
If `db.systemRoleReplacement` is blank, fallback to 'user'
## Related Issues
If `db.systemRoleReplacement` is blank, request sends role with empty
string.
## Changes
If `db.systemRoleReplacement` is blank, fallback to 'user'1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| |||
0 commit comments