Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/add-image-llm-config
This commit is contained in:
commit
d22502f2d7
|
|
@ -80,6 +80,10 @@ public partial class FileInstructService
|
|||
{
|
||||
return res;
|
||||
}
|
||||
else if (files.Count() == 1)
|
||||
{
|
||||
return files;
|
||||
}
|
||||
|
||||
var agentService = _services.GetRequiredService<IAgentService>();
|
||||
var llmProviderService = _services.GetRequiredService<ILlmProviderService>();
|
||||
|
|
@ -115,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.Template) ? options.Template : "select-chat-file_instruction";
|
||||
var prompt = db.GetAgentTemplate(agentId, template);
|
||||
|
||||
var data = new Dictionary<string, object>
|
||||
|
|
|
|||
Loading…
Reference in a new issue