Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit da8478e

Browse files
authored
Add files via upload
1 parent 8d016f1 commit da8478e

19 files changed

+5883
-5883
lines changed

IFChatPromptNode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ def __init__(self):
367367
self.random = False
368368

369369
self.comfy_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
370-
self.rag_dir = os.path.join(folder_paths.user_directory, "IF_AI", "rag")
371-
self.presets_dir = os.path.join(folder_paths.user_directory, "IF_AI", "presets")
370+
self.rag_dir = os.path.join(folder_paths.base_path, "custom_nodes", "ComfyUI-IF_AI_tools", "IF_AI", "rag")
371+
self.presets_dir = os.path.join(folder_paths.base_path, "custom_nodes", "ComfyUI-IF_AI_tools", "IF_AI", "presets")
372372

373373
self.stop_file = os.path.join(self.presets_dir, "stop_strings.json")
374374
self.assistants_file = os.path.join(self.presets_dir, "assistants.json")

IFDisplayTextWildcardNode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self):
2020

2121
# Initialize paths
2222
self.base_path = folder_paths.base_path
23-
self.presets_dir = os.path.join(folder_paths.user_directory, "IF_AI", "presets")
23+
self.presets_dir = os.path.join(folder_paths.base_path, "custom_nodes", "ComfyUI-IF_AI_tools", "IF_AI", "presets")
2424
self.wildcards_dir = os.path.join(self.presets_dir, "wildcards")
2525

2626
# Load wildcards

IFImagePromptNode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self):
7373
self.strategies = "normal"
7474
# Initialize paths and load presets
7575
self.base_path = folder_paths.base_path
76-
self.presets_dir = os.path.join(folder_paths.user_directory, "IF_AI", "presets")
76+
self.presets_dir = os.path.join(folder_paths.base_path, "custom_nodes", "ComfyUI-IF_AI_tools", "IF_AI", "presets")
7777

7878
# Load preset configurations
7979
self.profiles = self.load_presets(os.path.join(self.presets_dir, "profiles.json"))

IFPromptMkrNode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self):
7373
self.strategies = "normal"
7474
# Initialize paths and load presets
7575
self.base_path = folder_paths.base_path
76-
self.presets_dir = os.path.join(folder_paths.user_directory, "IF_AI", "presets")
76+
self.presets_dir = os.path.join(folder_paths.base_path, "custom_nodes", "ComfyUI-IF_AI_tools", "IF_AI", "presets")
7777

7878
# Load preset configurations
7979
self.profiles = self.load_presets(os.path.join(self.presets_dir, "profiles.json"))

IFSaveTextNode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def process_text(self, question_input, negative_input, response_input, save_file
4141
return (question_input, response_input, negative_input, turn)
4242

4343
def save_text_to_file(self, turn_data, file_format, save_mode):
44-
save_text_dir = os.path.join(folder_paths.user_directory, "IF_AI", "saved_outputs")
44+
save_text_dir = os.path.join(folder_paths.base_path, "custom_nodes", "ComfyUI-IF_AI_tools", "IF_AI", "saved_outputs")
4545
os.makedirs(save_text_dir, exist_ok=True)
4646
file_path = os.path.join(save_text_dir, f"output.{file_format}")
4747

LICENSE

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Copyright 2024 ImpactFrames
2-
3-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4-
5-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6-
1+
Copyright 2024 ImpactFrames
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
77
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

colpaliRAG_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
class colpaliRAGapp:
3737
def __init__(self):
3838
self.comfy_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
39-
self.rag_dir = os.path.join(folder_paths.user_directory, "IF_AI", "rag")
39+
self.rag_dir = os.path.join(folder_paths.base_path, "custom_nodes", "ComfyUI-IF_AI_tools", "IF_AI", "rag")
4040
self._rag_root_dir = None
4141
self._input_dir = None
4242
self.graphrag_app = GraphRAGapp()

graphRAG_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
class GraphRAGapp:
4444
def __init__(self):
4545
self.comfy_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
46-
self.rag_dir = os.path.join(folder_paths.user_directory, "IF_AI", "rag")
46+
self.rag_dir = os.path.join(folder_paths.base_path, "custom_nodes", "ComfyUI-IF_AI_tools", "IF_AI", "rag")
4747
self._rag_root_dir = None
4848
self._input_dir = None
4949
self.embedding_func = None
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)