AI Assistant: Rename AiAssistant to AIAssistant

Change-Id: Iae72ec6d94ec3f83dabdd624c1b474251aeee7a0
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Lukasz Papierkowski
2024-08-16 11:39:11 +02:00
committed by lie
parent 36e6d4b087
commit 05dcec2ea2
2 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
-- Copyright (C) 2024 The Qt Company Ltd. -- Copyright (C) 2024 The Qt Company Ltd.
-- SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 -- SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
return { return {
Name = "AiAssistant", Name = "AIAssistant",
Version = "1.0.0", Version = "1.0.0",
CompatVersion = "1.0.0", CompatVersion = "1.0.0",
Vendor = "The Qt Company", Vendor = "The Qt Company",

View File

@@ -219,12 +219,12 @@ local function createSelectionAspect(settingsKey, displayName)
end end
local function addLLMSetting(keySuffix, displayText) local function addLLMSetting(keySuffix, displayText)
Settings[keySuffix] = createSelectionAspect("AiAssistant." .. keySuffix, displayText) Settings[keySuffix] = createSelectionAspect("AIAssistant." .. keySuffix, displayText)
end end
local function addAuthTokenSetting(llm_name, displayText) local function addAuthTokenSetting(llm_name, displayText)
Settings["authToken" .. llm_name] = S.StringAspect.create({ Settings["authToken" .. llm_name] = S.StringAspect.create({
settingsKey = "AiAssistant.AuthToken." .. llm_name, settingsKey = "AIAssistant.AuthToken." .. llm_name,
labelText = displayText .. ":", labelText = displayText .. ":",
displayStyle = S.StringDisplayStyle.LineEdit, displayStyle = S.StringDisplayStyle.LineEdit,
defaultValue = "AUTH_TOKEN", defaultValue = "AUTH_TOKEN",
@@ -238,7 +238,7 @@ local function setupAspect()
}) })
Settings.binary = S.FilePathAspect.create({ Settings.binary = S.FilePathAspect.create({
settingsKey = "AiAssistant.Binary", settingsKey = "AIAssistant.Binary",
displayName = "Binary", displayName = "Binary",
labelText = "Binary:", labelText = "Binary:",
toolTip = "The path to the AI Assistant Server", toolTip = "The path to the AI Assistant Server",
@@ -258,9 +258,9 @@ local function setupAspect()
Options = S.OptionsPage.create({ Options = S.OptionsPage.create({
aspectContainer = Settings, aspectContainer = Settings,
categoryId = "AiAssistant.OptionsPage", categoryId = "AIAssistant.OptionsPage",
displayName = tr("AI Assistant"), displayName = tr("AI Assistant"),
id = "AiAssistant.Settings", id = "AIAssistant.Settings",
displayCategory = "AI Assistant", displayCategory = "AI Assistant",
categoryIconPath = PluginSpec.pluginDirectory:resolvePath("images/settingscategory_ai_assistant.png") categoryIconPath = PluginSpec.pluginDirectory:resolvePath("images/settingscategory_ai_assistant.png")
}) })