Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to add config settings(like api keys) after the first time running the app #54

Open
Bobbyztz opened this issue Aug 1, 2024 · 0 comments

Comments

@Bobbyztz
Copy link

Bobbyztz commented Aug 1, 2024

错误描述
在第一次运行应用程序之后, 于config.ini文件中添加的设置(如api key等)将不会在ComfyUI_LLM_party节点上起作用

Describe the bug
Adding settings in config.ini will not work on nodes for model and etc. after the first time running the app.

重现步骤

  1. 按照readme,添加设置(API密钥等)在config.ini中,运行ComfyUI。
  2. 在comfyui_LLM_party文件夹下将生成一个新的文件“config”,类型为“configuration settings”。
  3. 设置生效。
  4. 停止comfyui,修改config.ini,再次运行应用程序。
  5. 新设置不起作用,出现错误“'Incorrect API key provided: sk-XXXXX”等。

To Reproduce

  1. Follow readme, add settings(api keys and etc.) in config.ini, run ComfyUI.
  2. a new file "config" with type "configuration settings" will be generated under comfyui_LLM_party folder.
  3. the setting works.
  4. stop the comfyui, modify the config.ini, run app again.
  5. new setting doesn't work, error like "'Incorrect API key provided: sk-XXXXX"

截图Screenshots
image

解决方案

  • 第一次运行应用程序时会生成type为“configuration settings”的config文件,ComfyUI从该文件中读取设置。
  • 在第一次运行应用程序后,修改该文件中的设置,而不是修改config.ini文件。
  • 或者可以删除它,修改config.ini并运行应用程序。一个新的“configuration settings”文件将会生成。
  • 然后节点可以在不需要填充额外信息(如api key)的情况下工作。

Solutions

  • the first time running of app will generate the "configuration settings" file, ComfyUI read settings from it
  • modify settings in this file instead of config.ini file after the first time app's running.
  • or you can delete it, modify config.ini and run the app. A new "configuration settings" file will be generate.
  • Nodes work without information filling needed.
    f595d3547a5c0ed18360518a9008d5a4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant