CodeGPT
CodeGPT copied to clipboard
System Prompt Configuration Not Being Used
What happened?
The user-configured System Prompt does not seem to be effective. Upon inspecting the code, I observed that the system prompt is consistently read from default-completion-system-prompt.txt. The method ConfigurationSettings.getCurrentState().getSystemPrompt() is invoked only once in OpenAIChatCompletionMessage.
The situation with the commit message prompt is the same.
relate code:
CompletionRequestProvider.java
public static final String COMPLETION_SYSTEM_PROMPT = getResourceContent(
"/prompts/default-completion-system-prompt.txt");
public static final String GENERATE_COMMIT_MESSAGE_SYSTEM_PROMPT = getResourceContent(
"/prompts/generate-commit-message-system-prompt.txt");
var systemPrompt = COMPLETION_SYSTEM_PROMPT;
Relevant log output or stack trace
none
Steps to reproduce
just set a new new System Prompt in Configuration, it doesn't work
CodeGPT version
1.16.0
Operating System
None
@ChuangLee Thank you for reporting, I was able to fix this problem.