Skip to content

Commit c0391f4

Browse files
committed
minor change
1 parent 28a3479 commit c0391f4

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,7 @@ private async Task<InstructResult> RunLlm(
251251
var templateLlmConfig = agent.Templates?.FirstOrDefault(x => x.Name.IsEqualTo(templateName))?.LlmConfig;
252252
if (templateLlmConfig?.IsValid == true)
253253
{
254-
llmConfig = new AgentLlmConfig
255-
{
256-
Provider = templateLlmConfig.Provider,
257-
Model = templateLlmConfig.Model,
258-
MaxOutputTokens = templateLlmConfig.MaxOutputTokens,
259-
ReasoningEffortLevel = templateLlmConfig.ReasoningEffortLevel
260-
};
254+
llmConfig = new AgentLlmConfig(templateLlmConfig);
261255
}
262256
}
263257
else

0 commit comments

Comments
 (0)