Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.36 KB

File metadata and controls

20 lines (16 loc) · 1.36 KB

DP Broken Token

DP_Broken_Token

Description

The DP Broken Token node analyzes and splits Flux prompts based on user-defined token counts. It allows users to specify the maximum number of tokens for each part of the output, effectively breaking down a prompt into manageable segments.

Inputs

  • STRING - prompt - The input prompt to be analyzed and split. (Multiline input)
  • INT - max_tokens_part_1 - The maximum number of tokens for the first part of the output. (Default: 77, Min: 0, Max: 2000)
  • INT - max_tokens_part_2 - The maximum number of tokens for the second part of the output. (Default: 0, Min: 0, Max: 2000)

Outputs

  • INT - total_tokens - The total number of tokens in the input prompt.
  • STRING - info - Information about the token analysis.
  • STRING - Text part 1 - The first part of the split text.
  • STRING - Text part 2 - The second part of the split text.
  • STRING - Text part 3 - The third part of the split text.

Example Usage

To use the DP Broken Token node, connect a prompt to the prompt input and specify the maximum token counts for the parts. The node will output the total token count and the split text parts based on the specified limits.