/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/settings-ui/Settings.UI.Library/PasteAIProviderDefaults.cs
29 строк
1 KB
Shawn Yuan
Fix advanced paste settings migration issue (#43459)
12 ноя 2025, 11:24
Не верифицирован
12 ноя 2025, 11:24
5884375
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.PowerToys.Settings.UI.Library { /// <summary> /// Provides default values for Paste AI provider definitions. /// </summary> public static class PasteAIProviderDefaults { /// <summary> /// Gets the default model name for a given AI service type. /// </summary> public static string GetDefaultModelName(AIServiceType serviceType) { return serviceType switch { AIServiceType.OpenAI => "gpt-4o", AIServiceType.AzureOpenAI => "gpt-4o", AIServiceType.Mistral => "mistral-large-latest", AIServiceType.Google => "gemini-1.5-pro", AIServiceType.AzureAIInference => "gpt-4o-mini", AIServiceType.Ollama => "llama3", _ => string.Empty, }; } } }