This commit is contained in:
Jicheng Lu 2024-10-18 10:00:15 -05:00
commit 6aaf1835b5

View file

@ -63,14 +63,13 @@ public partial class InstructService
var localAgent = new Agent
{
Id = agentId,
Name = agent.Name,
Name = agent?.Name ?? "Unknown",
Instruction = prompt,
TemplateDict = new()
};
var messages = BuildDialogs(options);
var completion = CompletionProvider.GetChatCompletion(_services, provider: options.Provider, model: options.Model);
return await completion.GetChatCompletions(localAgent, messages);
}