Skip to content

Commit

Permalink
Update CreateAnswerCommentTaskCommand.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed May 6, 2024
1 parent 6e7538e commit c41e9e4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions MyApp.ServiceInterface/AiServer/CreateAnswerCommentTaskCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public async Task ExecuteAsync(CreateAnswerCommentTask request)
request.AiRef ??= Guid.NewGuid().ToString("N");

var answerPrompt =
$$"""
$"""
## Original Answer Attempt

{{request.Answer.Body}}
{request.Answer.Body}
---
""";

Expand Down Expand Up @@ -59,6 +59,14 @@ public async Task ExecuteAsync(CreateAnswerCommentTask request)
openAiChat.Messages.Add(new() { Role = "assistant", Content = comment.Body });
}
}
openAiChat.Messages.Add(new() { Role = "user",
Content = """
## Instruction
Answer the question query above in a concise manner.
Keep your response on the topic of the original question and answer, directly addressing my specific comment.
Max 2-3 sentences.
"""
});

var client = appConfig.CreateAiServerClient();

Expand Down

0 comments on commit c41e9e4

Please sign in to comment.