Bumb version to v0.16.2.
This commit is contained in:
parent
346e081ad6
commit
2dd8b9a3ff
|
|
@ -2,7 +2,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<LangVersion>10.0</LangVersion>
|
<LangVersion>10.0</LangVersion>
|
||||||
<OutputPath>..\..\..\packages</OutputPath>
|
<OutputPath>..\..\..\packages</OutputPath>
|
||||||
<BotSharpVersion>0.16.1</BotSharpVersion>
|
<BotSharpVersion>0.16.2</BotSharpVersion>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -134,9 +134,7 @@ public partial class RoutingService
|
||||||
#endif
|
#endif
|
||||||
private string GetNextStepPrompt()
|
private string GetNextStepPrompt()
|
||||||
{
|
{
|
||||||
var db = _services.GetRequiredService<IBotSharpRepository>();
|
var template = _routerInstance.Router.Templates.First(x => x.Name == "next_step_prompt").Content;
|
||||||
// _routerInstance.Router.Templates.First(x => x.Name == "next_step_prompt").Content;
|
|
||||||
var template = db.GetAgentTemplate(_routerInstance.AgentId, "next_step_prompt");
|
|
||||||
|
|
||||||
// If enabled reasoning
|
// If enabled reasoning
|
||||||
// JsonSerializer.Serialize(new FunctionCallFromLlm());
|
// JsonSerializer.Serialize(new FunctionCallFromLlm());
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,7 @@ public class InstructModeController : ControllerBase, IApiAdapter
|
||||||
// switch to different instruction template
|
// switch to different instruction template
|
||||||
if (!string.IsNullOrEmpty(input.Template))
|
if (!string.IsNullOrEmpty(input.Template))
|
||||||
{
|
{
|
||||||
var agentSettings = _services.GetRequiredService<AgentSettings>();
|
agent.Instruction = agent.Templates.First(x => x.Name == input.Template).Content;
|
||||||
var filePath = Path.Combine(agentService.GetAgentDataDir(agentId), $"{input.Template}.{agentSettings.TemplateFormat}");
|
|
||||||
agent.Instruction = System.IO.File.ReadAllText(filePath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var conv = _services.GetRequiredService<IConversationService>();
|
var conv = _services.GetRequiredService<IConversationService>();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue