Skip to content

Commit

Permalink
tidy(config): move version "setting" to new CLIArgs category
Browse files Browse the repository at this point in the history
It's not actually a setting.
  • Loading branch information
psychedelicious committed Mar 8, 2024
1 parent cab41bf commit 2d82bb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invokeai/app/services/config/config_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ class Categories(object):
Paths: JsonDict = {"category": "Paths"}
Logging: JsonDict = {"category": "Logging"}
Development: JsonDict = {"category": "Development"}
CLIArgs: JsonDict = {"category": "CLIArgs"}
ModelInstall: JsonDict = {"category": "Model Install"}
ModelCache: JsonDict = {"category": "Model Cache"}
Device: JsonDict = {"category": "Device"}
Expand Down Expand Up @@ -274,7 +275,7 @@ class InvokeAIAppConfig(InvokeAISettings):
profiles_dir : Path = Field(default=Path('profiles'), description="Directory for graph profiles", json_schema_extra=Categories.Development)
skip_model_hash : bool = Field(default=False, description="Skip model hashing, instead assigning a UUID to models. Useful when using a memory db to reduce startup time.", json_schema_extra=Categories.Development)

version : bool = Field(default=False, description="Show InvokeAI version and exit", json_schema_extra=Categories.Other)
version : bool = Field(default=False, description="Show InvokeAI version and exit", json_schema_extra=Categories.CLIArgs)

# CACHE
ram : float = Field(default=DEFAULT_RAM_CACHE, gt=0, description="Maximum memory amount used by model cache for rapid switching (floating point number, GB)", json_schema_extra=Categories.ModelCache, )
Expand Down

0 comments on commit 2d82bb8

Please sign in to comment.