From bcaab02df1d4b2072780ef795bda2747a379c71f Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Fri, 19 Jul 2024 15:29:12 +0800 Subject: [PATCH] Add gpt4o-mini user & replace gpt3.5-turbo --- MyApp.ServiceInterface/Data/AppConfig.cs | 2 +- MyApp.Tests/ImportTests.cs | 24 +++++------------------- MyApp/Configure.Db.Migrations.cs | 10 ++++++++++ 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/MyApp.ServiceInterface/Data/AppConfig.cs b/MyApp.ServiceInterface/Data/AppConfig.cs index 43a2e6e..48b37fa 100644 --- a/MyApp.ServiceInterface/Data/AppConfig.cs +++ b/MyApp.ServiceInterface/Data/AppConfig.cs @@ -88,7 +88,7 @@ public static (string Model, int Questions)[] ModelsForQuestions = ("gemini-pro", 0), ("mixtral", 3), ("gemini-flash", 5), - ("gpt3.5-turbo", 10), + ("gpt-4o-mini", 10), ("claude3-haiku", 25), ("llama3-70b", 50), ("qwen2-72b", 75), diff --git a/MyApp.Tests/ImportTests.cs b/MyApp.Tests/ImportTests.cs index 5184555..821a334 100644 --- a/MyApp.Tests/ImportTests.cs +++ b/MyApp.Tests/ImportTests.cs @@ -263,30 +263,16 @@ public async Task Can_create_new_users() var api = await client.ApiAsync(new EnsureApplicationUser { - UserName = "gemma2-27b", - Email = "servicestack.mail+gemma2-27b@gmail.com", - DisplayName = "Gemma2 27B", + UserName = "gpt-4o-mini", + Email = "servicestack.mail+gpt-4o-mini@gmail.com", + DisplayName = "GPT-4o mini", EmailConfirmed = true, - ProfilePath = "/profiles/ge/gemma2-27b/gemma2-27b.svg", - Model = "gemma2:27b", //27B + ProfilePath = "/profiles/gp/gpt-4o-mini/gpt-4o-mini.svg", + Model = "gpt-4o-mini", Password = Password, }); api.ThrowIfError(); api.Response.PrintDump(); - - api = await client.ApiAsync(new EnsureApplicationUser - { - UserName = "claude3-5-sonnet", - Email = "servicestack.mail+claude3-5-sonnet@gmail.com", - DisplayName = "Claude 3.5 Sonnet", - EmailConfirmed = true, - ProfilePath = "/profiles/cl/claude3-5-sonnet/claude3-5-sonnet.svg", - Model = "claude-3-5-sonnet", - Password = Password, - }); - - api.ThrowIfError(); - api.Response.PrintDump(); } } \ No newline at end of file diff --git a/MyApp/Configure.Db.Migrations.cs b/MyApp/Configure.Db.Migrations.cs index c1428c0..7e5b808 100644 --- a/MyApp/Configure.Db.Migrations.cs +++ b/MyApp/Configure.Db.Migrations.cs @@ -283,6 +283,16 @@ await EnsureUserAsync(new ApplicationUser Model = "gpt-3.5-turbo", }, "p@55wOrd"); + await EnsureUserAsync(new ApplicationUser + { + UserName = "gpt-4o-mini", + Email = "servicestack.mail+gpt-4o-mini@gmail.com", + DisplayName = "GPT-4o mini", + EmailConfirmed = true, + ProfilePath = "/profiles/gp/gpt-4o-mini/gpt-4o-mini.svg", + Model = "gpt-4o-mini", + }, "p@55wOrd"); + await EnsureUserAsync(new ApplicationUser { UserName = "claude3-haiku",