Add template_name to states for instruction mode
This commit is contained in:
parent
33bcea7203
commit
b81e162bf4
|
|
@ -29,7 +29,8 @@ public class InstructModeController : ControllerBase
|
|||
.SetState("model", input.Model, source: StateSource.External)
|
||||
.SetState("model_id", input.ModelId, source: StateSource.External)
|
||||
.SetState("instruction", input.Instruction, source: StateSource.External)
|
||||
.SetState("input_text", input.Text,source: StateSource.External);
|
||||
.SetState("input_text", input.Text, source: StateSource.External)
|
||||
.SetState("template_name", input.Template, source: StateSource.External);
|
||||
|
||||
var instructor = _services.GetRequiredService<IInstructService>();
|
||||
var result = await instructor.Execute(agentId,
|
||||
|
|
|
|||
Loading…
Reference in a new issue