Support git commit message generation (#276)

* Add git commit message generation feature using OpenAI service
This commit is contained in:
Carl-Robert 2023-11-17 01:20:00 +02:00 committed by GitHub
parent a53bc94d9f
commit 44e5aa79dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 197 additions and 4 deletions

View file

@ -21,6 +21,7 @@ public class ConfigurationState implements PersistentStateComponent<Configuratio
private int maxTokens = 1000;
private double temperature = 0.2;
private boolean createNewChatOnEachAction;
private boolean ignoreGitCommitTokenLimit;
private Map<String, String> tableData = EditorActionsUtil.DEFAULT_ACTIONS;
public static ConfigurationState getInstance() {
@ -77,4 +78,12 @@ public class ConfigurationState implements PersistentStateComponent<Configuratio
public void setTableData(Map<String, String> tableData) {
this.tableData = tableData;
}
public boolean isIgnoreGitCommitTokenLimit() {
return ignoreGitCommitTokenLimit;
}
public void setIgnoreGitCommitTokenLimit(boolean ignoreGitCommitTokenLimit) {
this.ignoreGitCommitTokenLimit = ignoreGitCommitTokenLimit;
}
}