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:
leo 2024-10-24 10:20:28 +08:00
parent 2f68aed817
commit 12bb915bd8
No known key found for this signature in database
5 changed files with 75 additions and 94 deletions

View file

@ -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;