Bumb version to v0.16.2.
This commit is contained in:
parent
346e081ad6
commit
2dd8b9a3ff
|
|
@ -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>
|
||||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue