Skip to content

Commit

Permalink
Merge pull request #60 from maozhen520/git-commit-msg-v2
Browse files Browse the repository at this point in the history
Git commit msg v2, adjust to nacos prompt config.
  • Loading branch information
xiangtianyu authored Jul 30, 2024
2 parents a0b320e + fd60036 commit 93f2f3e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public void run(@NotNull ProgressIndicator progressIndicator) {
if (editor != null) {
((EditorEx) editor).setCaretVisible(false);
DevPilotChatCompletionRequest devPilotChatCompletionRequest = new DevPilotChatCompletionRequest();
devPilotChatCompletionRequest.setVersion("V2");
devPilotChatCompletionRequest.getMessages().add(MessageUtil.createPromptMessage("-1", "GENERATE_COMMIT", Map.of("locale", getLocale(), "diff", diff)));
devPilotChatCompletionRequest.setStream(Boolean.FALSE);
var llmProvider = new LlmProviderFactory().getLlmProvider(project);
Expand Down

0 comments on commit 93f2f3e

Please sign in to comment.