feat: Improve system prompt for code completion

This commit is contained in:
Petr Mironychev 2024-11-26 11:29:20 +01:00
parent 31f4516e7b
commit b475f15e3d

View File

@ -143,9 +143,8 @@ CodeCompletionSettings::CodeCompletionSettings()
systemPrompt.setSettingsKey(Constants::CC_SYSTEM_PROMPT); systemPrompt.setSettingsKey(Constants::CC_SYSTEM_PROMPT);
systemPrompt.setDisplayStyle(Utils::StringAspect::TextEditDisplay); systemPrompt.setDisplayStyle(Utils::StringAspect::TextEditDisplay);
systemPrompt.setDefaultValue( systemPrompt.setDefaultValue("You are an expert C++, Qt, and QML code completion AI. ANSWER "
"You are an expert C++, Qt, and QML code completion AI. Your task is to provide accurate " "should be SHORT and in CODE");
"and contextually appropriate code suggestions.");
useFilePathInContext.setSettingsKey(Constants::CC_USE_FILE_PATH_IN_CONTEXT); useFilePathInContext.setSettingsKey(Constants::CC_USE_FILE_PATH_IN_CONTEXT);
useFilePathInContext.setDefaultValue(true); useFilePathInContext.setDefaultValue(true);