diff --git a/MyApp.ServiceInterface/Data/AppConfig.cs b/MyApp.ServiceInterface/Data/AppConfig.cs index d4b42da..45f7cd1 100644 --- a/MyApp.ServiceInterface/Data/AppConfig.cs +++ b/MyApp.ServiceInterface/Data/AppConfig.cs @@ -25,9 +25,9 @@ public static (string Model, int Questions)[] ModelsForQuestions = ("phi", 0), ("gemma:2b", 0), ("gemma", 3), - ("mixtral", 10), - ("gemini-pro", 20), - ("claude-3-sonnet-20240229", 50), + ("mixtral", 5), + ("gemini-pro", 10), + ("claude-3-sonnet-20240229", 25), ("gpt-4-turbo-preview", 50), ("claude-3-opus-20240229", 100), #else @@ -38,9 +38,9 @@ public static (string Model, int Questions)[] ModelsForQuestions = ("deepseek-coder:6.7b", 0), ("mistral", 0), ("gemma", 3), - ("mixtral", 10), - // ("gemini-pro", 20), - // ("claude-3-sonnet-20240229", 50), + ("mixtral", 5), + // ("gemini-pro", 10), + // ("claude-3-sonnet-20240229", 25), // ("gpt-4-turbo-preview", 50), // ("claude-3-opus-20240229", 100), #endif diff --git a/MyApp.ServiceInterface/QuestionServices.cs b/MyApp.ServiceInterface/QuestionServices.cs index 83d7e13..137a31c 100644 --- a/MyApp.ServiceInterface/QuestionServices.cs +++ b/MyApp.ServiceInterface/QuestionServices.cs @@ -243,7 +243,7 @@ public async Task Any(GetAnswerBody request) } } - public async Task Any(CreateWorkerAnswer request) + public async Task Any(CreateWorkerAnswer request) { var json = request.Json; if (string.IsNullOrEmpty(json)) @@ -275,6 +275,13 @@ public async Task Any(CreateWorkerAnswer request) await questions.SaveModelAnswerAsync(request.PostId, request.Model, json); answerNotifier.NotifyNewAnswer(request.PostId, request.Model); + + return new IdResponse { Id = $"{request.PostId}" }; + } + + public async Task Any(RankAnswers request) + { + return new IdResponse { Id = $"{request.PostId}" }; } public async Task Any(CreateComment request)