feat: strengthen baseline system directive to ignore background demo image
This commit is contained in:
@@ -1044,8 +1044,8 @@ func formatToolPrompt(tools []Tool) string {
|
||||
func PrepareConversation(req ChatCompletionRequest) (history []map[string]interface{}, currentQuestion string, thinkingMode string) {
|
||||
var systemParts []string
|
||||
|
||||
// Add default baseline directive to maintain conversational focus
|
||||
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.")
|
||||
// Add default baseline directive to maintain conversational focus and ignore demo image
|
||||
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 {
|
||||
systemParts = append(systemParts, formatToolPrompt(req.Tools))
|
||||
|
||||
Reference in New Issue
Block a user