Skip to content

Commit 1c4c701

Browse files
committed
update tooltips
1 parent f08e89a commit 1c4c701

3 files changed

Lines changed: 2 additions & 27 deletions

File tree

Runtime/LLM.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

Runtime/LLMAgent.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,23 @@ public class LLMAgent : LLMClient
2121
{
2222
#region Inspector Fields
2323
/// <summary>Filename for saving chat history (saved in persistentDataPath)</summary>
24-
[Tooltip("Filename for saving chat history (saved in Application.persistentDataPath)")]
24+
[Tooltip("Filename for saving chat history (saved in persistentDataPath)")]
2525
[LLM] public string save = "";
2626

2727
/// <summary>Debug LLM prompts</summary>
2828
[Tooltip("Debug LLM prompts")]
2929
[LLM] public bool debugPrompt = false;
3030

3131
/// <summary>Server slot to use for processing (affects caching behavior)</summary>
32-
[Tooltip("Server slot to use for processing (affects caching behavior)")]
3332
[ModelAdvanced, SerializeField] protected int _slot = -1;
3433

3534
/// <summary>Role name for user messages in conversation</summary>
36-
[Tooltip("Role name for user messages in conversation")]
3735
[Chat, SerializeField] protected string _userRole = "user";
3836

3937
/// <summary>Role name for AI assistant messages in conversation</summary>
40-
[Tooltip("Role name for AI assistant messages in conversation")]
4138
[Chat, SerializeField] protected string _assistantRole = "assistant";
4239

4340
/// <summary>System prompt that defines the AI's personality and behavior</summary>
44-
[Tooltip("System prompt that defines the AI's personality and behavior")]
4541
[TextArea(5, 10), Chat, SerializeField]
4642
protected string _systemPrompt = "A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions.";
4743
#endregion

Runtime/LLMClient.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,24 @@ public class LLMClient : MonoBehaviour
2525
[HideInInspector] public bool advancedOptions = false;
2626

2727
/// <summary>Use remote LLM server instead of local instance</summary>
28-
[Tooltip("Use remote LLM server instead of local instance")]
2928
[LocalRemote, SerializeField] protected bool _remote;
3029

3130
/// <summary>Local LLM GameObject to connect to</summary>
32-
[Tooltip("Local LLM GameObject to connect to")]
3331
[Local, SerializeField] protected LLM _llm;
3432

3533
/// <summary>API key for remote server authentication</summary>
36-
[Tooltip("API key for remote server authentication")]
3734
[Remote, SerializeField] protected string _APIKey;
3835

3936
/// <summary>Hostname or IP address of remote LLM server</summary>
40-
[Tooltip("Hostname or IP address of remote LLM server")]
4137
[Remote, SerializeField] protected string _host = "localhost";
4238

4339
/// <summary>Port number of remote LLM server</summary>
44-
[Tooltip("Port number of remote LLM server")]
4540
[Remote, SerializeField] protected int _port = 13333;
4641

4742
/// <summary>Number of retries of remote LLM server</summary>
48-
[Tooltip("Number of retries of remote LLM server")]
4943
[Remote, SerializeField] protected int numRetries = 5;
5044

5145
/// <summary>Grammar constraints for output formatting (GBNF or JSON schema format)</summary>
52-
[Tooltip("Grammar constraints for output formatting (GBNF or JSON schema format)")]
5346
[ModelAdvanced, TextArea(1, 10), SerializeField] protected string _grammar = "";
5447

5548
// Completion Parameters

0 commit comments

Comments
 (0)