Skip to content

Latest commit

 

History

History
117 lines (72 loc) · 2.65 KB

File metadata and controls

117 lines (72 loc) · 2.65 KB

Configuration

Namespace: Microsoft.AI.Foundry.Local

public class Configuration

Inheritance ObjectConfiguration
Attributes NullableContextAttribute, NullableAttribute, RequiredMemberAttribute

Properties

AppName

Your application name. MUST be set to a valid name.

public string AppName { get; set; }

Property Value

String

AppDataDir

Application data directory. Default: {home}/.{appname}, where {home} is the user's home directory and {appname} is the AppName value.

public string AppDataDir { get; set; }

Property Value

String

ModelCacheDir

Model cache directory. Default: {appdata}/cache/models, where {appdata} is the AppDataDir value.

public string ModelCacheDir { get; set; }

Property Value

String

LogsDir

Log directory. Default: {appdata}/logs

public string LogsDir { get; set; }

Property Value

String

LogLevel

Logging level. Valid values are: Verbose, Debug, Information, Warning, Error, Fatal. Default: LogLevel.Warning

public LogLevel LogLevel { get; set; }

Property Value

LogLevel

Web

Optional configuration for the built-in web service. NOTE: This is not included in all builds.

public WebService Web { get; set; }

Property Value

WebService

AdditionalSettings

Additional settings that Foundry Local Core can consume. Keys and values are strings.

public IDictionary<string, string> AdditionalSettings { get; set; }

Property Value

IDictionary<String, String>

Constructors

Configuration()

Caution

Constructors of types with required members are not supported in this version of your compiler.


public Configuration()