Skip to content

Commit

Permalink
Update AI Server request DTO after refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Oct 4, 2024
1 parent 4530a47 commit c66cbb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Max 2-3 sentences.
log.LogInformation("Sending CreateOpenAiChat for Question {Id} Answer Comment for {Model}, replyTo: {ReplyTo}",
question.Id, request.Model, replyTo);

var api = await client.ApiAsync(new CreateOpenAiChat {
var api = await client.ApiAsync(new QueueOpenAiChatCompletion {
RefId = request.AiRef,
Tag = "pvq",
Provider = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Concisely articulate what a good answer needs to contain and how the answer prov
question.Id, replyTo);

var client = appConfig.CreateAiServerClient();
var api = await client.ApiAsync(new CreateOpenAiChat {
var api = await client.ApiAsync(new QueueOpenAiChatCompletion {
RefId = Guid.NewGuid().ToString("N"),
Tag = "pvq",
Provider = null,
Expand Down
6 changes: 3 additions & 3 deletions MyApp.ServiceModel/OpenAi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ public class CreateAnswerTasks
public List<string> ModelUsers { get; set; } = new();
}

public class CreateOpenAiChat : IReturn<CreateOpenAiChatResponse>

public class QueueOpenAiChatCompletion : IReturn<QueueOpenAiChatResponse>
{
public string? RefId { get; set; }
public string? Provider { get; set; }
public string? ReplyTo { get; set; }
public string? Tag { get; set; }
public OpenAiChat Request { get; set; }
}

public class CreateOpenAiChatResponse
public class QueueOpenAiChatResponse
{
public long Id { get; set; }
public string RefId { get; set; }
Expand Down

0 comments on commit c66cbb3

Please sign in to comment.