AsposeLLMApi.Create

AsposeLLMApi.Create method

Creates a new AsposeLLMApi instance using the provided preset. Equivalent to new AsposeLLMApi(preset, logger); preserved for fluent / factory-style call sites.

public static AsposeLLMApi Create(PresetCoreBase preset, ILogger? logger = null)
ParameterTypeDescription
presetPresetCoreBasePreset instance that provides default parameters.
loggerILoggerOptional logger instance.

Return Value

New AsposeLLMApi instance.

Exceptions

exceptioncondition
InvalidOperationExceptionThrown when another AsposeLLMApi instance is already live in the process.

Remarks

The preset carries configuration only, never a model. The model file it points at is obtained separately on your machine and is governed by the model publisher’s license, which you are responsible for complying with.

See Also