Class implementing a LLM model entry.
More...
|
| | ModelEntry (string path, bool lora=false, string label=null, string url=null) |
| | Constructs a LLM model entry.
|
| |
| ModelEntry | OnlyRequiredFields () |
| | Returns only the required fields for bundling the model in the build.
|
| |
|
| static string | GetFilenameOrRelativeAssetPath (string path) |
| | Returns the relative asset path if it is in the AssetPath folder (StreamingAssets or persistentPath), otherwise the filename.
|
| |
Class implementing a LLM model entry.
Definition at line 17 of file LLMManager.cs.
◆ ModelEntry()
| LLMUnity.ModelEntry.ModelEntry |
( |
string | path, |
|
|
bool | lora = false, |
|
|
string | label = null, |
|
|
string | url = null ) |
|
inline |
Constructs a LLM model entry.
- Parameters
-
| path | model path |
| lora | if it is a LORA or LLM |
| label | label to show in the model manager in the Editor |
| url | model url |
Definition at line 55 of file LLMManager.cs.
◆ GetFilenameOrRelativeAssetPath()
| static string LLMUnity.ModelEntry.GetFilenameOrRelativeAssetPath |
( |
string | path | ) |
|
|
inlinestatic |
Returns the relative asset path if it is in the AssetPath folder (StreamingAssets or persistentPath), otherwise the filename.
- Parameters
-
- Returns
- relative asset path or filename
Definition at line 37 of file LLMManager.cs.
◆ OnlyRequiredFields()
| ModelEntry LLMUnity.ModelEntry.OnlyRequiredFields |
( |
| ) |
|
|
inline |
Returns only the required fields for bundling the model in the build.
- Returns
- Adapted model entry
Definition at line 85 of file LLMManager.cs.
◆ chatTemplate
| string LLMUnity.ModelEntry.chatTemplate |
◆ contextLength
| int LLMUnity.ModelEntry.contextLength |
◆ embeddingLength
| int LLMUnity.ModelEntry.embeddingLength |
◆ embeddingOnly
| bool LLMUnity.ModelEntry.embeddingOnly |
◆ filename
| string LLMUnity.ModelEntry.filename |
◆ includeInBuild
| bool LLMUnity.ModelEntry.includeInBuild |
◆ label
| string LLMUnity.ModelEntry.label |
◆ lora
| bool LLMUnity.ModelEntry.lora |
◆ path
| string LLMUnity.ModelEntry.path |
◆ url
| string LLMUnity.ModelEntry.url |
The documentation for this class was generated from the following file: