File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Infrastructure/BotSharp.Core/Files/Services/Instruct Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ private async Task<IEnumerable<MessageFileModel>> SelectFiles(IEnumerable<Messag
8080 {
8181 return res ;
8282 }
83+ else if ( files . Count ( ) == 1 )
84+ {
85+ return files ;
86+ }
8387
8488 var agentService = _services . GetRequiredService < IAgentService > ( ) ;
8589 var llmProviderService = _services . GetRequiredService < ILlmProviderService > ( ) ;
@@ -115,7 +119,7 @@ private async Task<IEnumerable<MessageFileModel>> SelectFiles(IEnumerable<Messag
115119 } ) . ToList ( ) ;
116120
117121 var agentId = ! string . IsNullOrWhiteSpace ( options . AgentId ) ? options . AgentId : BuiltInAgentId . FileAssistant ;
118- var template = ! string . IsNullOrWhiteSpace ( options . Template ) ? options . Template : "select_chat_file_instruction " ;
122+ var template = ! string . IsNullOrWhiteSpace ( options . Template ) ? options . Template : "select-chat-file_instruction " ;
119123 var prompt = db . GetAgentTemplate ( agentId , template ) ;
120124
121125 var data = new Dictionary < string , object >
You can’t perform that action at this time.
0 commit comments