feature: add per-repository setting for prefered OpenAI service

* If there is only one OpenAI service available, discard the setting of prefered OpenAI service. Instead, use it directly
* If there are multiple OpenAI service available, try to find the prefered one or show a context menu for users to choose the one they want to use

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-10-28 21:31:40 +08:00
parent 48725a7937
commit 498d2b54ae
No known key found for this signature in database
7 changed files with 90 additions and 4 deletions

View file

@ -130,6 +130,12 @@ namespace SourceGit.Models
set;
} = false;
public string PreferedOpenAIService
{
get;
set;
} = "---";
public void PushCommitMessage(string message)
{
var existIdx = CommitMessages.IndexOf(message);