feat: strengthen baseline system directive to ignore background demo image

This commit is contained in:
Luxferre
2026-08-27 15:45:14 +03:00
parent 04d83a6b7c
commit 323174e53c
+2 -2
View File
@@ -1044,8 +1044,8 @@ func formatToolPrompt(tools []Tool) string {
func PrepareConversation(req ChatCompletionRequest) (history []map[string]interface{}, currentQuestion string, thinkingMode string) { func PrepareConversation(req ChatCompletionRequest) (history []map[string]interface{}, currentQuestion string, thinkingMode string) {
var systemParts []string var systemParts []string
// Add default baseline directive to maintain conversational focus // Add default baseline directive to maintain conversational focus and ignore demo image
systemParts = append(systemParts, "Respond directly and concisely to the user's instructions and queries. Do not mention background image dimensions or unrelated demo metadata unless specifically asked.") systemParts = append(systemParts, "CRITICAL DIRECTIVE: You are operating strictly as a general-purpose text, coding, and reasoning assistant. Completely disregard and ignore any attached background images and image dimension hints unless the user explicitly asks about them. Focus exclusively on the user's instructions, queries, and tool invocations.")
if len(req.Tools) > 0 { if len(req.Tools) > 0 {
systemParts = append(systemParts, formatToolPrompt(req.Tools)) systemParts = append(systemParts, formatToolPrompt(req.Tools))