mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
code_review: PR #596
- Add `ViewModels.Preference.PrepareOpenAIPrompt()` method to generate default prompt instead of a const fallback value. Therefore, it is more convenient for us to modify the default value in the Preference dialog. - Modify the default prompts. Rename `SubjectPrompt` to `GenerateSubjectPrompt`. Rename `SummaryPrompt` to `AnalyzeDiffPrompt`. - Rewrite the way to build OpenAI user content for subject generation Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
2f68aed817
commit
12bb915bd8
5 changed files with 75 additions and 94 deletions
|
@ -94,13 +94,13 @@ namespace SourceGit.Models
|
|||
set;
|
||||
}
|
||||
|
||||
public static string SubjectPrompt
|
||||
public static string AnalyzeDiffPrompt
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public static string SummaryPrompt
|
||||
public static string GenerateSubjectPrompt
|
||||
{
|
||||
get;
|
||||
set;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue