#TEMPLATE#

This commit is contained in:
Haiping Chen 2024-03-22 22:09:43 -05:00
parent d5f93d1318
commit 6a87a035bc

View file

@ -79,6 +79,12 @@ public partial class InstructService : IInstructService
}
else if (completer is IChatCompletion chatCompleter)
{
if (instruction == "#TEMPLATE#")
{
instruction = prompt;
prompt = message.Content;
}
var result = await chatCompleter.GetChatCompletions(new Agent
{
Id = agentId,