Skip to content

Commit

Permalink
Add gpt4o-mini user & replace gpt3.5-turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jul 19, 2024
1 parent 35740a3 commit bcaab02
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion MyApp.ServiceInterface/Data/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
24 changes: 5 additions & 19 deletions MyApp.Tests/ImportTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]",
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();
}
}
10 changes: 10 additions & 0 deletions MyApp/Configure.Db.Migrations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,16 @@ await EnsureUserAsync(new ApplicationUser
Model = "gpt-3.5-turbo",
}, "p@55wOrd");

await EnsureUserAsync(new ApplicationUser
{
UserName = "gpt-4o-mini",
Email = "[email protected]",
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",
Expand Down

0 comments on commit bcaab02

Please sign in to comment.