/ src / settings-ui / Settings.UI.Library / PasteAIProviderDefaults.cs
PasteAIProviderDefaults.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  namespace Microsoft.PowerToys.Settings.UI.Library
 6  {
 7      /// <summary>
 8      /// Provides default values for Paste AI provider definitions.
 9      /// </summary>
10      public static class PasteAIProviderDefaults
11      {
12          /// <summary>
13          /// Gets the default model name for a given AI service type.
14          /// </summary>
15          public static string GetDefaultModelName(AIServiceType serviceType)
16          {
17              return serviceType switch
18              {
19                  AIServiceType.OpenAI => "gpt-4o",
20                  AIServiceType.AzureOpenAI => "gpt-4o",
21                  AIServiceType.Mistral => "mistral-large-latest",
22                  AIServiceType.Google => "gemini-1.5-pro",
23                  AIServiceType.AzureAIInference => "gpt-4o-mini",
24                  AIServiceType.Ollama => "llama3",
25                  _ => string.Empty,
26              };
27          }
28      }
29  }