Skip to content

Commit 6d66786

Browse files
committed
Rename "Configs" to "Presets" and update related comments in OllamaAgent configuration.
1 parent 9d1998f commit 6d66786

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

shell/agents/AIShell.Ollama.Agent/OllamaAgent.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ private void NewExampleSettingFile()
319319
// 1. Install Ollama: `winget install Ollama.Ollama`
320320
// 2. Start Ollama API server: `ollama serve`
321321
// 3. Install Ollama model: `ollama pull phi3`
322-
"Configs": [
322+
323+
// Declare predefined model configurations
324+
"Presets": [
323325
{
324326
"Name": "PowerShell Expert",
325327
"Description": "A ollama agent with expertise in PowerShell scripting and command line utilities.",
@@ -331,8 +333,8 @@ private void NewExampleSettingFile()
331333
"Endpoint": "http://localhost:11434",
332334
// Enable Ollama streaming
333335
"Stream": false,
334-
// Specify the default model to use
335-
"DefaultConfig": "PowerShell Expert"
336+
// Specify the default preset to use
337+
"DefaultPreset": "PowerShell Expert"
336338
}
337339
""";
338340
File.WriteAllText(SettingFile, SampleContent, Encoding.UTF8);

0 commit comments

Comments
 (0)