Skip to content

Commit b81e162

Browse files
committed
Add template_name to states for instruction mode
1 parent 33bcea7 commit b81e162

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public async Task<InstructResult> InstructCompletion([FromRoute] string agentId,
2929
.SetState("model", input.Model, source: StateSource.External)
3030
.SetState("model_id", input.ModelId, source: StateSource.External)
3131
.SetState("instruction", input.Instruction, source: StateSource.External)
32-
.SetState("input_text", input.Text,source: StateSource.External);
32+
.SetState("input_text", input.Text, source: StateSource.External)
33+
.SetState("template_name", input.Template, source: StateSource.External);
3334

3435
var instructor = _services.GetRequiredService<IInstructService>();
3536
var result = await instructor.Execute(agentId,

0 commit comments

Comments
 (0)