commit
0f6a4a5dc3
|
|
@ -80,6 +80,10 @@ public partial class FileInstructService
|
||||||
{
|
{
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
else if (files.Count() == 1)
|
||||||
|
{
|
||||||
|
return files;
|
||||||
|
}
|
||||||
|
|
||||||
var agentService = _services.GetRequiredService<IAgentService>();
|
var agentService = _services.GetRequiredService<IAgentService>();
|
||||||
var llmProviderService = _services.GetRequiredService<ILlmProviderService>();
|
var llmProviderService = _services.GetRequiredService<ILlmProviderService>();
|
||||||
|
|
@ -115,7 +119,7 @@ public partial class FileInstructService
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
var agentId = !string.IsNullOrWhiteSpace(options.AgentId) ? options.AgentId : BuiltInAgentId.FileAssistant;
|
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.Template) ? options.Template : "select-chat-file_instruction";
|
||||||
var prompt = db.GetAgentTemplate(agentId, template);
|
var prompt = db.GetAgentTemplate(agentId, template);
|
||||||
|
|
||||||
var data = new Dictionary<string, object>
|
var data = new Dictionary<string, object>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue