AsposeLLMApi.Create
Contents
[
Hide
]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)
| Parameter | Type | Description |
|---|---|---|
| preset | PresetCoreBase | Preset instance that provides default parameters. |
| logger | ILogger | Optional logger instance. |
Return Value
New AsposeLLMApi instance.
Exceptions
| exception | condition |
|---|---|
| InvalidOperationException | Thrown 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
- class AsposeLLMApi
- namespace Aspose.LLM
- assembly Aspose.LLM