v3.0.7

Comfy-Org/ComfyUIv3.0.7Jun 22, 2025by clusterzx

AI Summary

This release refactors prompt handling to support user-defined placeholders such as %RESTRICTED_CORRESPONDENTS% and %RESTRICTED_TAGS% within system messages. It introduces a dedicated RestrictionPromptService to manage these replacements and removes legacy logic from multiple services. Test scripts have also been updated to reflect these changes.

Key Highlights

  • Refactored prompt handling to support user-customized placeholders.
  • Introduction of the RestrictionPromptService.
  • Removal of legacy prompt-building logic from multiple services.
  • New placeholders %RESTRICTED_CORRESPONDENTS% and %RESTRICTED_TAGS%.
  • New contributor @nielsmaerten.

New Features

  • Support for %RESTRICTED_CORRESPONDENTS% placeholder.
  • Support for %RESTRICTED_TAGS% placeholder.
  • RestrictionPromptService for placeholder replacement.

Full Release Notes

## News:
This release refactors the prompt handling to support user-customized placeholders in the system message. It introduces a dedicated RestrictionPromptService for placeholder replacement, removes legacy prompt-building logic from multiple services, and updates the associated test scripts.

Now you can define with **%RESTRICTED_CORRESPONDENTS%** and **%RESTRICTED_TAGS%** placeholders where in the prompt the existing Data is injected.

## What's Changed
* refactor prompt handing to support placeholders by @nielsmaerten in https://github.com/clusterzx/paperless-ai/pull/584

## New Contributors
* @nielsmaerten made their first contribution in https://github.com/clusterzx/paperless-ai/pull/584

**Full Changelog**: https://github.com/clusterzx/paperless-ai/compare/v3.0.6...v3.0.7