add: remove <think>...</think> tag for deepseek r1 via RegText_Node

This commit is contained in:
AhBumm
2025-01-24 10:14:31 +08:00
parent 9f29450374
commit 127425a341
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1134,8 +1134,8 @@ class BillBum_Modified_RegText_Node:
CATEGORY = "text_processing"
def de_warp_text(self, input_text):
text = re.sub(r"<think>.*?<\/think>", "", text)
text = input_text.replace('\n', '').replace('.', ',')
text = re.sub(r"<[^>]*>", "", text)
text = re.sub(r"[^a-zA-Z0-9\s,'-]", "", text)
return (text,)
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui_billbum_nodes"
description = "API call node for Third-party platforms both official and local. Support VLMs LLMs Dalle3 Flux-Pro SD3 etc. And some little tools: img to b64 url, b64 url to img, b64 url to b64 data, reg text to word and ',' only, etc."
version = "1.0.3"
version = "1.0.4"
license = {file = "LICENSE"}
dependencies = ["tenacity", "openai", "pillow", "requests", "together", "torch", "numpy", "tiktoken"]