Skip to main content
Sets a custom directory path where OpenComic AI models are stored. This is useful when you want to manage models in a different location than the default.

Syntax

Parameters

string
required
Absolute or relative path to the models directory. The path must exist or an error will be thrown.

Returns

void - This method does not return a value.

Behavior

  • The path is resolved to an absolute path automatically
  • Validates that the directory exists before setting
  • Throws an error if the specified path does not exist

Example

Error handling

Source

Defined in index.mts:758-767