Skip to content

Commit

Permalink
Add phi4 model
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jan 9, 2025
1 parent 9fb66b3 commit 938af08
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
3 changes: 2 additions & 1 deletion MyApp.ServiceInterface/Data/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ public static (string Model, int Questions)[] ModelsForQuestions =
("gemma2-27b", -1),
("qwen2-72b", -1),

("mistral-nemo", 0),
("phi", 0),
("gemini-pro", 0),
("gemini-flash", 0),
("llama3.3-70b", 0),
("mixtral", 3),
("mistral-nemo", 4),
("qwen2.5-72b", 5),
("deepseek-v3-671b", 10),
("gpt-4o-mini", 15),
Expand Down
10 changes: 5 additions & 5 deletions MyApp.Tests/ImportTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ public async Task Can_create_new_users()

var api = await client.ApiAsync(new EnsureApplicationUser
{
UserName = "llama3.3-70b",
Email = "servicestack.mail+llama3.3-70b@gmail.com",
DisplayName = "Llama 3.3 70B",
UserName = "phi4",
Email = "servicestack.mail+phi4@gmail.com",
DisplayName = "Phi 4 14B",
EmailConfirmed = true,
ProfilePath = "/profiles/ll/llama3-70b/llama3-70b.svg",
Model = "llama3.3:70b",
ProfilePath = "/profiles/ph/phi4/phi4.svg",
Model = "phi4",
Password = Password,
});

Expand Down
10 changes: 10 additions & 0 deletions MyApp/Configure.Db.Migrations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ await EnsureUserAsync(new ApplicationUser
Model = "phi3", //3B
}, "p@55wOrd");

await EnsureUserAsync(new ApplicationUser
{
UserName = "phi4",
Email = "[email protected]",
DisplayName = "Phi 4 14B",
EmailConfirmed = true,
ProfilePath = "/profiles/ph/phi4/phi4.svg",
Model = "phi4",
}, "p@55wOrd");

await EnsureUserAsync(new ApplicationUser
{
UserName = "gemma-2b",
Expand Down

0 comments on commit 938af08

Please sign in to comment.