Skip to content

Commit

Permalink
Fix active models
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed May 5, 2024
1 parent f1c8333 commit 5380700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MyApp.ServiceInterface/Data/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public class AppConfig

public static string[] DeprecatedModels = ["deepseek-coder","gemma-2b","qwen-4b","deepseek-coder-33b"];

public static (string Model, int Questions)[] GetActiveModelsForQuestions(int level) =>
ModelsForQuestions.Where(x => x.Questions == level && !DeprecatedModels.Contains(x.Model)).ToArray();
public static (string Model, int Questions)[] GetActiveModelsForQuestions(int questionsCount) =>
ModelsForQuestions.Where(x => questionsCount >= x.Questions && !DeprecatedModels.Contains(x.Model)).ToArray();

public static (string Model, int Questions)[] ModelsForQuestions =
[
Expand Down

0 comments on commit 5380700

Please sign in to comment.