Bumb version to v0.16.2.

This commit is contained in:
Haiping Chen 2023-10-16 16:56:32 -05:00
parent 346e081ad6
commit 2dd8b9a3ff
3 changed files with 3 additions and 7 deletions

View file

@ -2,7 +2,7 @@
<PropertyGroup>
<LangVersion>10.0</LangVersion>
<OutputPath>..\..\..\packages</OutputPath>
<BotSharpVersion>0.16.1</BotSharpVersion>
<BotSharpVersion>0.16.2</BotSharpVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
</Project>

View file

@ -134,9 +134,7 @@ public partial class RoutingService
#endif
private string GetNextStepPrompt()
{
var db = _services.GetRequiredService<IBotSharpRepository>();
// _routerInstance.Router.Templates.First(x => x.Name == "next_step_prompt").Content;
var template = db.GetAgentTemplate(_routerInstance.AgentId, "next_step_prompt");
var template = _routerInstance.Router.Templates.First(x => x.Name == "next_step_prompt").Content;
// If enabled reasoning
// JsonSerializer.Serialize(new FunctionCallFromLlm());

View file

@ -31,9 +31,7 @@ public class InstructModeController : ControllerBase, IApiAdapter
// switch to different instruction template
if (!string.IsNullOrEmpty(input.Template))
{
var agentSettings = _services.GetRequiredService<AgentSettings>();
var filePath = Path.Combine(agentService.GetAgentDataDir(agentId), $"{input.Template}.{agentSettings.TemplateFormat}");
agent.Instruction = System.IO.File.ReadAllText(filePath);
agent.Instruction = agent.Templates.First(x => x.Name == input.Template).Content;
}
var conv = _services.GetRequiredService<IConversationService>();