feat: Integrated Vision & Robust Translation Layer, Secured Repo (removed keys)

This commit is contained in:
Gemini AI
2025-12-15 04:53:51 +04:00
Unverified
parent a8436c91a3
commit 2407c42eb9
38 changed files with 7786 additions and 3776 deletions

View File

@@ -354,7 +354,10 @@ class QwenOAuth {
// If systemPrompt is provided (New Flow), use it directly + message
if (systemPrompt) {
finalMessage = systemPrompt + '\n\n' + message;
// STRICT PROMPT ENGINEERING:
// Wrap system instructions in explicit brackets to force model adherence
// and separate clearly from user message.
finalMessage = `[SYSTEM INSTRUCTION START]\n${systemPrompt}\n[SYSTEM INSTRUCTION END]\n\n[USER MESSAGE START]\n${message}\n[USER MESSAGE END]`;
} else {
// Legacy Flow: Prepend hardcoded context for specific keywords
const systemContext = `[SYSTEM CONTEXT - ALWAYS FOLLOW]