Comments (5)
我在LLM链的节点上放了一个is_locked参数,如果开启了之后,LLM只会返回上次返回的结果,相当于跳过了这个节点,看是不是满足您的需求
from comfyui_llm_party.
我在LLM链的节点上放了一个is_locked参数,如果开启了之后,LLM只会返回上次返回的结果,相当于跳过了这个节点,看是不是满足您的需求
好的,感谢,测试了一下确实可以,不用二次花费API费用,
这个参数只能手动开关吗,有运行一次自动关闭,然后手动启用的办法吗
from comfyui_llm_party.
需要注释掉我的项目文件夹下的llm.py文件里LLM类的694到698行:
@classmethod
def IS_CHANGED(s):
# 返回当前时间的哈希值,确保每次都不同
current_time = str(time.time())
return hashlib.sha256(current_time.encode()).hexdigest()
注释掉之后,只有你改变了LLM节点的输入,才会重新运行这个节点,我会去试试把这个is_locked和这函数绑定一下哈哈哈,应该就是你要的效果了
from comfyui_llm_party.
需要注释掉我的项目文件夹下的llm.py文件里LLM类的694到698行: @classmethod def IS_CHANGED(s): # 返回当前时间的哈希值,确保每次都不同 current_time = str(time.time()) return hashlib.sha256(current_time.encode()).hexdigest() 注释掉之后,只有你改变了LLM节点的输入,才会重新运行这个节点,我会去试试把这个is_locked和这函数绑定一下哈哈哈,应该就是你要的效果了
感谢,按大佬提供的方法修改了,这样才不参数不变,就不用每次运行了
from comfyui_llm_party.
更新了一个新的版本,最新版本里,is_locked和 IS_CHANGED函数挂钩了,现在只需要is_locked开启,就是你要的效果了,应该没有什么问题了,我把这个问题关闭了哈
from comfyui_llm_party.
Related Issues (20)
- UnicodeEncodeError: 'locale' codec can't encode character '\u5e74' in position 2: encoding error HOT 2
- Can't Install Requirements HOT 2
- ModuleNotFoundError: No module named 'jax.numpy'; 'jax' is not a package HOT 15
- ModuleNotFoundError: No module named 'arxiv' HOT 2
- 请问人格面具可以自己自定义吗?
- 请问API大语言模型节点,每次都要自动生成一次吗?能不能设置固定或者随机?
- ollama的调用为什么不能成功? HOT 1
- 能不能让llama 3.1也可以使用工具? HOT 1
- Add new tool: duckduckgo/ searXNG websearch, no API key required HOT 3
- ModuleNotFoundError: No module named 'server' HOT 1
- ComfyUI启动时,能否进一步提速? HOT 2
- failed to add config settings(like api keys) after the first time running the app
- TypeError: install_package() got an unexpected keyword argument 'custom_command' HOT 2
- failed to import dpkg HOT 1
- load video HOT 1
- centos平台报错:ComfyUI/custom_nodes/comfyui_LLM_party module for custom nodes: [Errno 2] No such file or di rectory: 'dpkg' HOT 6
- 有没有豆包平台工作流的例子,配完config.ini不知道怎么连工作流 HOT 2
- 使用本地模型生成提示词后,继续文生图显存不足 HOT 2
- 导入 amap 时出错:cannot import name 'language' from 'config' HOT 3
- 'Chat' object has no attribute 'parameters' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comfyui_llm_party.