Skip to content

Commit

Permalink
fix: Use prompt instead of diff when making request to Open AI API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Blarc committed Apr 5, 2023
1 parent d200ef8 commit a759819
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## [Unreleased]
### Fixed
- Use prompt instead of diff when making request to Open AI API.

## [0.5.0] - 2023-04-04

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pluginGroup = com.github.blarc
pluginName = AICommits
pluginRepositoryUrl = https://github.com/Blarc/ai-commits-intellij-plugin
# SemVer format -> https://semver.org
pluginVersion = 0.5.0
pluginVersion = 0.5.1

# https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 231
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class AICommitAction : AnAction(), DumbAware {
val openAIService = OpenAIService.instance
GlobalScope.launch(Dispatchers.Main) {
try {
val generatedCommitMessage = openAIService.generateCommitMessage(diff, 1)
val generatedCommitMessage = openAIService.generateCommitMessage(prompt, 1)
commitMessage.setCommitMessage(generatedCommitMessage)
AppSettings.instance.recordHit()
}
Expand Down

0 comments on commit a759819

Please sign in to comment.