Skip to content

Adding a server config file and api route to download models download configuration #7376

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lerignoux
Copy link
Contributor

Backend changes to add models download configuration in Comfy API.
Cf Front end Merge Request
Comfy-Org/ComfyUI_frontend#3216

┆Issue is synchronized with this Notion page by Unito

@@ -32,3 +54,24 @@ def load_extra_path_config(yaml_path):
normalized_path = os.path.normpath(full_path)
logging.info("Adding extra search path {} {}".format(x, normalized_path))
folder_paths.add_model_folder_path(x, normalized_path, is_default)

def load_server_config(component=None):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not find a global server configuration file, did I miss any ?
Does such a setup is ok for the project ?

from .json_util import merge_json_recursive

default_server_config = {
'internal': {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if it is the best place to put the config default, does anybody has a better suggestion ?

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

Successfully merging this pull request may close these issues.

1 participant