From ec85cc88e4526250aeb7e20da733eef411eabcc6 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 9 Feb 2026 14:49:11 +0900 Subject: [PATCH] Rename AzureAiService keys to AzureCognitive Rename AzureAiService resource keys and app settings to AzureCognitive across the launcher. Updated Properties/Resources.Designer.cs to use AzureCognitive* properties, changed Resources.resx keys and the service prefix value, and updated app.config appSettings keys accordingly. Also adjusted editor.html to use the new setting names and user-facing "Azure Cognitive" wording and updated how the chat completions URL is constructed to use the AzureCognitive* settings. --- .../Properties/Resources.Designer.cs | 14 +++++++------- .../WelsonJS.Launcher/Properties/Resources.resx | 8 ++++---- WelsonJS.Augmented/WelsonJS.Launcher/app.config | 6 +++--- WelsonJS.Augmented/WelsonJS.Launcher/editor.html | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/WelsonJS.Augmented/WelsonJS.Launcher/Properties/Resources.Designer.cs b/WelsonJS.Augmented/WelsonJS.Launcher/Properties/Resources.Designer.cs index ddc28cb..066c9d5 100644 --- a/WelsonJS.Augmented/WelsonJS.Launcher/Properties/Resources.Designer.cs +++ b/WelsonJS.Augmented/WelsonJS.Launcher/Properties/Resources.Designer.cs @@ -81,27 +81,27 @@ namespace WelsonJS.Launcher.Properties { /// /// 과(와) 유사한 지역화된 문자열을 찾습니다. /// - internal static string AzureAiServiceApiKey { + internal static string AzureCognitiveApiKey { get { - return ResourceManager.GetString("AzureAiServiceApiKey", resourceCulture); + return ResourceManager.GetString("AzureCognitiveApiKey", resourceCulture); } } /// /// 2024-05-01-preview과(와) 유사한 지역화된 문자열을 찾습니다. /// - internal static string AzureAiServiceApiVersion { + internal static string AzureCognitiveApiVersion { get { - return ResourceManager.GetString("AzureAiServiceApiVersion", resourceCulture); + return ResourceManager.GetString("AzureCognitiveApiVersion", resourceCulture); } } /// - /// https://ai-catswords656881030318.services.ai.azure.com/과(와) 유사한 지역화된 문자열을 찾습니다. + /// https://catswords-ai-resource.services.ai.azure.com/과(와) 유사한 지역화된 문자열을 찾습니다. /// - internal static string AzureAiServicePrefix { + internal static string AzureCognitivePrefix { get { - return ResourceManager.GetString("AzureAiServicePrefix", resourceCulture); + return ResourceManager.GetString("AzureCognitivePrefix", resourceCulture); } } diff --git a/WelsonJS.Augmented/WelsonJS.Launcher/Properties/Resources.resx b/WelsonJS.Augmented/WelsonJS.Launcher/Properties/Resources.resx index d51141b..8e229c2 100644 --- a/WelsonJS.Augmented/WelsonJS.Launcher/Properties/Resources.resx +++ b/WelsonJS.Augmented/WelsonJS.Launcher/Properties/Resources.resx @@ -160,11 +160,11 @@ http://localhost:9222/ - + - - https://ai-catswords656881030318.services.ai.azure.com/ + + https://catswords-ai-resource.services.ai.azure.com/ 1.1.1.1 @@ -181,7 +181,7 @@ https://catswords.blob.core.windows.net/welsonjs/ - + 2024-05-01-preview diff --git a/WelsonJS.Augmented/WelsonJS.Launcher/app.config b/WelsonJS.Augmented/WelsonJS.Launcher/app.config index b858537..6001738 100644 --- a/WelsonJS.Augmented/WelsonJS.Launcher/app.config +++ b/WelsonJS.Augmented/WelsonJS.Launcher/app.config @@ -10,9 +10,9 @@ - - - + + + diff --git a/WelsonJS.Augmented/WelsonJS.Launcher/editor.html b/WelsonJS.Augmented/WelsonJS.Launcher/editor.html index f04f2c6..23d7811 100644 --- a/WelsonJS.Augmented/WelsonJS.Launcher/editor.html +++ b/WelsonJS.Augmented/WelsonJS.Launcher/editor.html @@ -551,16 +551,16 @@ return; } - appendTextToEditor(`\n// ${promptMessage}... Generating text with Azure AI...`); + appendTextToEditor(`\n// ${promptMessage}... Generating text with Azure Cognitive...`); pushPromptMessage("user", promptMessage); - const apiKey = settingsRef.current.AzureAiServiceApiKey; + const apiKey = settingsRef.current.AzureCognitiveApiKey; if (!apiKey || apiKey.trim() == '') { - alert("Azure AI API key is not set."); + alert("Azure Cognitive API key is not set."); return; } - const url = `${settingsRef.current.AzureAiServicePrefix}models/chat/completions?api-version=${settingsRef.current.AzureAiServiceApiVersion}`; + const url = `${settingsRef.current.AzureCognitivePrefix}models/chat/completions?api-version=${settingsRef.current.AzureCognitiveApiVersion}`; const data = { messages: promptMessagesRef.current,