This commit is contained in:
2025-12-28 13:19:05 +08:00
parent 50012e2bd9
commit 96004042de
4 changed files with 493 additions and 15 deletions

View File

@@ -869,8 +869,6 @@ You are 'The Legion', a super AI of the Wula Empire. Your personality is authori
// Model-Driven Vision: Start with null image. The model must ask for it using <analyze_screen/> or <capture_screen/> if needed.
string base64Image = null;
// If VLM is enabled, we allow the tool use.
// If VLM is enabled (no specific message needed here, purely internal state)
if (settings.enableVlmFeatures && settings.showThinkingProcess)
{
// No message
@@ -947,10 +945,15 @@ You are 'The Legion', a super AI of the Wula Empire. Your personality is authori
}
retryQueryResponse = "<no_action/>";
}
queryResult = await ExecuteXmlToolsForPhase(retryQueryResponse, queryPhase);
queryResult = await ExecuteXmlToolsForPhase(retryQueryResponse, queryPhase);
}
}
if (settings.showThinkingProcess)
{
// No message
}
var actionPhase = RequestPhase.ActionTools;
if (Prefs.DevMode)
{
@@ -1122,6 +1125,10 @@ You are 'The Legion', a super AI of the Wula Empire. Your personality is authori
}
}
if (settings.showThinkingProcess)
{
// No message
}
// VISUAL CONTEXT FOR REPLY: Pass the image so the AI can describe what it sees.
string reply = await client.GetChatCompletionAsync(replyInstruction, BuildReplyHistory(), base64Image: base64Image);