mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-07-18 21:14:34 -04:00
refactor: Claude user message and code completion system prompt
This commit is contained in:
@ -42,9 +42,10 @@ public:
|
||||
QString content = message["content"].toString();
|
||||
|
||||
if (message["role"] == "user") {
|
||||
message["content"] = QString("Complete the code ONLY between these "
|
||||
"parts:\nBefore: %1\nAfter: %2\n")
|
||||
.arg(context.prefix, context.suffix);
|
||||
message["content"]
|
||||
= QString("Here is the code context with insertion points: <code_context>"
|
||||
"\nBefore: %1\nAfter: %2\n </code_context>")
|
||||
.arg(context.prefix, context.suffix);
|
||||
} else {
|
||||
message["content"] = QString("%1").arg(content);
|
||||
}
|
||||
|
Reference in New Issue
Block a user