mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-11 04:50:31 +00:00
Support git commit message generation (#276)
* Add git commit message generation feature using OpenAI service
This commit is contained in:
parent
a53bc94d9f
commit
44e5aa79dd
6 changed files with 197 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue