This commit is contained in:
Jicheng Lu 2025-10-14 14:14:55 -05:00
parent 749345d282
commit 40e8457dc9
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ public class SelectFileOptions : LlmConfigBase
/// <summary>
/// Template (prompt) name
/// </summary>
public string? Template { get; set; }
public string? TemplateName { get; set; }
/// <summary>
/// Description that user provides to select files

View file

@ -119,7 +119,7 @@ public partial class FileInstructService
}).ToList();
var agentId = !string.IsNullOrWhiteSpace(options.AgentId) ? options.AgentId : BuiltInAgentId.FileAssistant;
var template = !string.IsNullOrWhiteSpace(options.Template) ? options.Template : "select-chat-file_instruction";
var template = !string.IsNullOrWhiteSpace(options.TemplateName) ? options.TemplateName : "select-chat-file_instruction";
var prompt = db.GetAgentTemplate(agentId, template);
var data = new Dictionary<string, object>