From 56b1620766c8a417de21e16c1bc8bbc415b537de Mon Sep 17 00:00:00 2001 From: "nick.yi" Date: Wed, 19 Aug 2026 16:59:25 +0800 Subject: [PATCH] optimize Translate --- .../BotSharp.Core/Translation/TranslationService.cs | 1 + .../agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/agent.json | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/Infrastructure/BotSharp.Core/Translation/TranslationService.cs b/src/Infrastructure/BotSharp.Core/Translation/TranslationService.cs index 9fde3ad0e..fa4233407 100644 --- a/src/Infrastructure/BotSharp.Core/Translation/TranslationService.cs +++ b/src/Infrastructure/BotSharp.Core/Translation/TranslationService.cs @@ -380,6 +380,7 @@ private async Task InnerTranslate(List text Id = Guid.Empty.ToString(), Name = "Translator", Instruction = "You are a translation expert.", + LlmConfig = _router?.LlmConfig, TemplateDict = new() { ["text_list"] = jsonString, diff --git a/src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/agent.json b/src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/agent.json index 5e4186dcf..56ac1c2a3 100644 --- a/src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/agent.json +++ b/src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/agent.json @@ -9,6 +9,11 @@ "disabled": false, "isPublic": true, "profiles": [ "planning", "fallback", "human" ], + "llmConfig": { + "provider": "openai", + "model": "gpt-5.4-mini", + "max_output_tokens": 4096 + }, "routingRules": [ { "type": "reasoner",