Skip to content

Commit 6a87a03

Browse files
committed
#TEMPLATE#
1 parent d5f93d1 commit 6a87a03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Infrastructure/BotSharp.Core/Instructs/InstructService.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ public async Task<InstructResult> Execute(string agentId, RoleDialogModel messag
7979
}
8080
else if (completer is IChatCompletion chatCompleter)
8181
{
82+
if (instruction == "#TEMPLATE#")
83+
{
84+
instruction = prompt;
85+
prompt = message.Content;
86+
}
87+
8288
var result = await chatCompleter.GetChatCompletions(new Agent
8389
{
8490
Id = agentId,

0 commit comments

Comments
 (0)