Allow prompt post-processing for all sources. Add 'single user msg' processing (#4009)

* Allow prompt post-processing for all sources. Add 'single user msg' PPP type

* Fix copilot comments

* Fix typo in element id

* Remove redundant conditions

* Lint fix

* Add link to PPP docs
This commit is contained in:
Cohee
2025-05-22 20:36:22 +03:00
committed by GitHub
parent 157315cd68
commit ade45b6cd1
5 changed files with 55 additions and 22 deletions

View File

@ -575,6 +575,11 @@ export class ToolManager {
return false;
}
// Post-processing will forcefully remove past tool calls from the prompt, making them useless
if (oai_settings.custom_prompt_post_processing) {
return false;
}
if (oai_settings.chat_completion_source === chat_completion_sources.POLLINATIONS && Array.isArray(model_list)) {
const currentModel = model_list.find(model => model.id === oai_settings.pollinations_model);
if (currentModel) {