@@ -25,63 +25,48 @@ public class LLM : MonoBehaviour
2525 [ HideInInspector ] public bool advancedOptions = false ;
2626
2727 /// <summary>Enable remote server functionality to allow external connections</summary>
28- [ Tooltip ( "Enable remote server functionality to allow external connections" ) ]
2928 [ LocalRemote , SerializeField ] private bool _remote = false ;
3029
3130 /// <summary>Port to use for the remote LLM server</summary>
32- [ Tooltip ( "Port to use for the remote LLM server" ) ]
3331 [ Remote , SerializeField ] private int _port = 13333 ;
3432
3533 /// <summary>API key required for server access (leave empty to disable authentication)</summary>
36- [ Tooltip ( "API key required for server access (leave empty to disable authentication)" ) ]
3734 [ SerializeField ] private string _APIKey = "" ;
3835
3936 /// <summary>SSL certificate for the remote LLM server</summary>
40- [ Tooltip ( "SSL certificate for the remote LLM server" ) ]
4137 [ SerializeField ] private string _SSLCert = "" ;
4238
4339 /// <summary>SSL key for the remote LLM server</summary>
44- [ Tooltip ( "SSL key for the remote LLM server" ) ]
4540 [ SerializeField ] private string _SSLKey = "" ;
4641
4742 /// <summary>Number of threads to use for processing (-1 = use all available threads)</summary>
48- [ Tooltip ( "Number of threads to use for processing (-1 = use all available threads)" ) ]
4943 [ LLM , SerializeField ] private int _numThreads = - 1 ;
5044
5145 /// <summary>Number of model layers to offload to GPU (0 = CPU only). Falls back to CPU if GPU unsupported</summary>
52- [ Tooltip ( "Number of model layers to offload to GPU (0 = CPU only). Falls back to CPU if GPU unsupported" ) ]
5346 [ LLM , SerializeField ] private int _numGPULayers = 0 ;
5447
5548 /// <summary>Number of prompts that can be processed in parallel (-1 = auto-detect from clients)</summary>
56- [ Tooltip ( "Number of prompts that can be processed in parallel (-1 = auto-detect from clients)" ) ]
5749 [ LLM , SerializeField ] private int _parallelPrompts = - 1 ;
5850
5951 /// <summary>Size of the prompt context in tokens (0 = use model's default context size)</summary>
60- [ Tooltip ( "Size of the prompt context in tokens (0 = use model's default context size). This determines how much conversation history the model can remember." ) ]
6152 [ DynamicRange ( "minContextLength" , "maxContextLength" , false ) , Model , SerializeField ] private int _contextSize = 8192 ;
6253
6354 /// <summary>Batch size for prompt processing (larger = more memory, potentially faster)</summary>
64- [ Tooltip ( "Batch size for prompt processing (larger = more memory, potentially faster)" ) ]
6555 [ ModelAdvanced , SerializeField ] private int _batchSize = 512 ;
6656
6757 /// <summary>LLM model file path (.gguf format)</summary>
68- [ Tooltip ( "LLM model file path (.gguf format)" ) ]
6958 [ ModelAdvanced , SerializeField ] private string _model = "" ;
7059
7160 /// <summary>Enable flash attention optimization (requires compatible model)</summary>
72- [ Tooltip ( "Enable flash attention optimization (requires compatible model)" ) ]
7361 [ ModelExtras , SerializeField ] private bool _flashAttention = false ;
7462
7563 /// <summary>Enable LLM reasoning ("thinking" mode)</summary>
76- [ Tooltip ( "Enable LLM reasoning ('thinking' mode)" ) ]
7764 [ ModelAdvanced , SerializeField ] private bool _reasoning = false ;
7865
7966 /// <summary>LORA adapter model paths (.gguf format), separated by commas</summary>
80- [ Tooltip ( "LORA adapter model paths (.gguf format), separated by commas" ) ]
8167 [ ModelAdvanced , SerializeField ] private string _lora = "" ;
8268
8369 /// <summary>Weights for LORA adapters, separated by commas (default: 1.0 for each)</summary>
84- [ Tooltip ( "Weights for LORA adapters, separated by commas (default: 1.0 for each)" ) ]
8570 [ ModelAdvanced , SerializeField ] private string _loraWeights = "" ;
8671
8772 /// <summary>Persist this LLM GameObject across scene transitions</summary>
@@ -288,6 +273,7 @@ public string SSLKey
288273 public LLMService llmService { get ; private set ; }
289274
290275 /// <summary>Model architecture name (e.g., "llama", "mistral")</summary>
276+ [ Tooltip ( "Model architecture name (e.g., " llama", "mistral" ) ") ]
291277 public string architecture => llmlib ? . architecture ;
292278
293279 /// <summary>True if this model only supports embeddings (no text generation)</summary>
0 commit comments