feature: add tooltip for SHA in commit message presenter (#734)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-24 21:22:04 +08:00
parent 637f138d63
commit b2e01f0d3e
No known key found for this signature in database
4 changed files with 80 additions and 11 deletions

View file

@ -175,7 +175,7 @@ namespace SourceGit.Models
var body = reader.Result;
if (!rsp.IsSuccessStatusCode)
{
throw new Exception($"AI service returns error code {rsp.StatusCode}. Body: {body??string.Empty}");
throw new Exception($"AI service returns error code {rsp.StatusCode}. Body: {body ?? string.Empty}");
}
return JsonSerializer.Deserialize(reader.Result, JsonCodeGen.Default.OpenAIChatResponse);