mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-24 04:01:04 -04:00
feat: add support acp in common chat (#369)
This commit is contained in:
@@ -10,9 +10,6 @@ QString renderSystemPrompt(const TurnContext &context)
|
||||
{
|
||||
QString prompt = context.basePrompt;
|
||||
|
||||
if (context.rolePrompt)
|
||||
prompt += "\n\n" + *context.rolePrompt;
|
||||
|
||||
if (context.project.available) {
|
||||
prompt += QString("\n# Active project: %1").arg(context.project.displayName);
|
||||
prompt += QString(
|
||||
@@ -28,9 +25,6 @@ QString renderSystemPrompt(const TurnContext &context)
|
||||
"create or edit source files here): %1")
|
||||
.arg(*context.project.buildDirectory);
|
||||
}
|
||||
|
||||
if (!context.projectRules.isEmpty())
|
||||
prompt += QString("\n# Project Rules\n\n") + context.projectRules;
|
||||
} else {
|
||||
prompt += QString("\n# No active project in IDE");
|
||||
}
|
||||
@@ -44,12 +38,6 @@ QString renderSystemPrompt(const TurnContext &context)
|
||||
for (const InvokedSkill &skill : context.invokedSkills)
|
||||
prompt += QString("\n\n# Invoked Skill: %1\n\n%2").arg(skill.name, skill.body);
|
||||
|
||||
if (!context.linkedFilePaths.isEmpty()) {
|
||||
prompt += "\n\nLinked files for reference:\n";
|
||||
for (const LinkedFile &file : context.linkedFiles)
|
||||
prompt += QString("\nFile: %1\nContent:\n%2\n").arg(file.fileName, file.content);
|
||||
}
|
||||
|
||||
return prompt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user