Completion Regenerate Button

This commit is contained in:
josc146
2023-06-28 20:46:21 +08:00
parent 2fe7a23049
commit b56a55e81d
3 changed files with 22 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ class CommonStore {
// completion
completionPreset: CompletionPreset | null = null;
completionGenerating: boolean = false;
completionSubmittedPrompt: string = '';
// configs
currentModelConfigIndex: number = 0;
modelConfigs: ModelConfig[] = [];
@@ -221,6 +222,10 @@ class CommonStore {
setActivePreset(value: Preset) {
this.activePreset = value;
}
setCompletionSubmittedPrompt(value: string) {
this.completionSubmittedPrompt = value;
}
}
export default new CommonStore();