diff --git a/packages/ai-chat/src/browser/ai-chat-preferences.ts b/packages/ai-chat/src/browser/ai-chat-preferences.ts index 2e676f040b4ae..11dee619e4ff0 100644 --- a/packages/ai-chat/src/browser/ai-chat-preferences.ts +++ b/packages/ai-chat/src/browser/ai-chat-preferences.ts @@ -17,14 +17,15 @@ import { AI_CORE_PREFERENCES_TITLE } from '@theia/ai-core/lib/browser/ai-core-preferences'; import { PreferenceSchema } from '@theia/core/lib/browser/preferences/preference-contribution'; -export const DEFAULT_CHAT_AGENT_PREF = 'ai-features.chat.default-chat-agent'; +export const DEFAULT_CHAT_AGENT_PREF = 'ai-features.chat.defaultChatAgent'; export const aiChatPreferences: PreferenceSchema = { type: 'object', properties: { [DEFAULT_CHAT_AGENT_PREF]: { type: 'string', - description: ' of the Chat Agent that shall be invoked, if no agent is explicitly mentioned with @ in the user query.', + description: 'Optional: of the Chat Agent that shall be invoked, if no agent is explicitly mentioned with @ in the user query.\ + If no Default Agent is configured, Theia´s defaults will be applied.', title: AI_CORE_PREFERENCES_TITLE, } } diff --git a/packages/ai-code-completion/src/browser/ai-code-completion-preference.ts b/packages/ai-code-completion/src/browser/ai-code-completion-preference.ts index e610213c787a5..3dd995bc96618 100644 --- a/packages/ai-code-completion/src/browser/ai-code-completion-preference.ts +++ b/packages/ai-code-completion/src/browser/ai-code-completion-preference.ts @@ -17,7 +17,7 @@ import { PreferenceSchema } from '@theia/core/lib/browser/preferences/preference-contribution'; import { AI_CORE_PREFERENCES_TITLE } from '@theia/ai-core/lib/browser/ai-core-preferences'; -export const PREF_AI_INLINE_COMPLETION_ENABLE = 'ai-features.code-completion-inline.enable'; +export const PREF_AI_INLINE_COMPLETION_ENABLE = 'ai-features.codeCompletion.enableCodeCompletion'; export const AICodeCompletionPreferencesSchema: PreferenceSchema = { type: 'object', diff --git a/packages/ai-core/src/browser/ai-core-preferences.ts b/packages/ai-core/src/browser/ai-core-preferences.ts index 5afda4aafbf9b..29fd1a5fa3be6 100644 --- a/packages/ai-core/src/browser/ai-core-preferences.ts +++ b/packages/ai-core/src/browser/ai-core-preferences.ts @@ -19,14 +19,14 @@ import { PreferenceProxyFactory } from '@theia/core/lib/browser/preferences/inje import { interfaces } from '@theia/core/shared/inversify'; export const AI_CORE_PREFERENCES_TITLE = '✨ AI Features [Experimental]'; -export const PREFERENCE_NAME_ENABLE_EXPERIMENTAL = 'ai-features.ai-enable.enable'; -export const PREFERENCE_NAME_PROMPT_TEMPLATES = 'ai-features.templates.templates-folder'; +export const PREFERENCE_NAME_ENABLE_EXPERIMENTAL = 'ai-features.AiEnable.enableAI'; +export const PREFERENCE_NAME_PROMPT_TEMPLATES = 'ai-features.promptTemplates.promptTemplatesFolder'; export const aiCorePreferenceSchema: PreferenceSchema = { type: 'object', properties: { [PREFERENCE_NAME_ENABLE_EXPERIMENTAL]: { - title: AI_CORE_PREFERENCES_TITLE, + title: 'AI_CORE_PREFERENCES_TITLE', markdownDescription: '❗ This setting allows you to access and experiment with our latest AI capabilities.\ \n\ Please note that these features are in an experimental phase, which means they may be unstable,\ @@ -41,7 +41,8 @@ export const aiCorePreferenceSchema: PreferenceSchema = { }, [PREFERENCE_NAME_PROMPT_TEMPLATES]: { title: AI_CORE_PREFERENCES_TITLE, - description: 'Folder for managing custom prompt templates. If not customized the user config directory is used.', + description: 'Folder for storing customized prompt templates. If not customized the user config directory is used. Please consider to use a folder, which is\ + under version control to manage your variants of prompt templates.', type: 'string', default: '', typeDetails: { diff --git a/packages/ai-ollama/src/browser/ollama-preferences.ts b/packages/ai-ollama/src/browser/ollama-preferences.ts index b7088001bccc0..62e2a63362b7a 100644 --- a/packages/ai-ollama/src/browser/ollama-preferences.ts +++ b/packages/ai-ollama/src/browser/ollama-preferences.ts @@ -17,8 +17,8 @@ import { PreferenceSchema } from '@theia/core/lib/browser/preferences/preference-contribution'; import { AI_CORE_PREFERENCES_TITLE } from '@theia/ai-core/lib/browser/ai-core-preferences'; -export const HOST_PREF = 'ai-features.ollama.host'; -export const MODELS_PREF = 'ai-features.ollama.models'; +export const HOST_PREF = 'ai-features.ollama.ollamaHost'; +export const MODELS_PREF = 'ai-features.ollama.ollamaModels'; export const OllamaPreferencesSchema: PreferenceSchema = { type: 'object', @@ -26,7 +26,7 @@ export const OllamaPreferencesSchema: PreferenceSchema = { [HOST_PREF]: { type: 'string', title: AI_CORE_PREFERENCES_TITLE, - description: 'Ollama Host', + description: '', default: 'http://localhost:11434' }, [MODELS_PREF]: { diff --git a/packages/ai-openai/src/browser/openai-preferences.ts b/packages/ai-openai/src/browser/openai-preferences.ts index 82fa2ca45d50e..5b17033d137fb 100644 --- a/packages/ai-openai/src/browser/openai-preferences.ts +++ b/packages/ai-openai/src/browser/openai-preferences.ts @@ -17,16 +17,16 @@ import { PreferenceSchema } from '@theia/core/lib/browser/preferences/preference-contribution'; import { AI_CORE_PREFERENCES_TITLE } from '@theia/ai-core/lib/browser/ai-core-preferences'; -export const API_KEY_PREF = 'ai-features.openai.api-key'; -export const MODELS_PREF = 'ai-features.openai.models'; -export const CUSTOM_ENDPOINTS_PREF = 'ai-features.openai.models-custom'; +export const API_KEY_PREF = 'ai-features.openAiOfficial.openAiApiKey'; +export const MODELS_PREF = 'ai-features.openAiOfficial.officialOpenAiModels'; +export const CUSTOM_ENDPOINTS_PREF = 'ai-features.openAiCustom.customOpenAiModels'; export const OpenAiPreferencesSchema: PreferenceSchema = { type: 'object', properties: { [API_KEY_PREF]: { type: 'string', - markdownDescription: '**Please note:** By using this preference the Open AI API key will be stored in clear text on the machine running Theia.\ + markdownDescription: 'Enter an API Key of your official OpenAI Account. **Please note:** By using this preference the Open AI API key will be stored in clear text on the machine running Theia.\ Use the environment variable `OPENAI_API_KEY` to set the key securely.', title: AI_CORE_PREFERENCES_TITLE, }, @@ -43,7 +43,7 @@ export const OpenAiPreferencesSchema: PreferenceSchema = { type: 'array', title: AI_CORE_PREFERENCES_TITLE, markdownDescription: 'Integrate custom models compatible with the OpenAI API, for example via `vllm`. The required attributes are `model` and `url`.\ - Optionally, you can provide a unique `id` to identify the custom model in the UI. If none is given `model` will be used as `id`', + Optionally, you can provide a unique `id` to identify the custom model in the UI. If none is given `model` will be used as `id`.', default: [], items: { type: 'object',