Skip to content

Commit 304d87b

Browse files
authored
Mark llmprovider experimental (#16784)
* Support preference tags in settings view * Mark LLM providers as experimental in settings UI
1 parent b51a0bb commit 304d87b

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

packages/ai-hugging-face/src/common/huggingface-preferences.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const HuggingFacePreferencesSchema: PreferenceSchema = {
2828
'Enter an API Key for your Hugging Face Account. **Please note:** By using this preference the Hugging Face API key will be stored in clear text\
2929
on the machine running Theia. Use the environment variable `HUGGINGFACE_API_KEY` to set the key securely.'),
3030
title: AI_CORE_PREFERENCES_TITLE,
31+
tags: ['experimental']
3132
},
3233
[MODELS_PREF]: {
3334
type: 'array',
@@ -36,7 +37,8 @@ export const HuggingFacePreferencesSchema: PreferenceSchema = {
3637
default: ['bigcode/starcoder'],
3738
items: {
3839
type: 'string'
39-
}
40+
},
41+
tags: ['experimental']
4042
}
4143
}
4244
};

packages/ai-llamafile/src/common/llamafile-preferences.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export const aiLlamafilePreferencesSchema: PreferenceSchema = {
5151
description: nls.localize('theia/ai/llamaFile/prefs/port/description', 'The port to use to start the server.')
5252
}
5353
}
54-
}
54+
},
55+
tags: ['experimental']
5556
}
5657
}
5758
};

packages/ai-vercel-ai/src/common/vercel-ai-preferences.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,18 @@ export const VercelAiPreferencesSchema: PreferenceSchema = {
3131
markdownDescription: nls.localize('theia/ai/vercelai/openaiApiKey/mdDescription',
3232
'Enter an API Key for OpenAI models used by the Vercel AI SDK. \
3333
**Please note:** By using this preference the API key will be stored in clear text \
34-
on the machine running Theia. Use the environment variable `OPENAI_API_KEY` to set the key securely.'),
34+
on the machine running Theia. Use the environment variable `OPENAI_API_KEY` to set the key securely.'),
3535
title: AI_CORE_PREFERENCES_TITLE,
36+
tags: ['experimental']
3637
},
3738
[ANTHROPIC_API_KEY_PREF]: {
3839
type: 'string',
3940
markdownDescription: nls.localize('theia/ai/vercelai/anthropicApiKey/mdDescription',
4041
'Enter an API Key for Anthropic models used by the Vercel AI SDK. \
4142
**Please note:** By using this preference the API key will be stored in clear text \
42-
on the machine running Theia. Use the environment variable `ANTHROPIC_API_KEY` to set the key securely.'),
43+
on the machine running Theia. Use the environment variable `ANTHROPIC_API_KEY` to set the key securely.'),
4344
title: AI_CORE_PREFERENCES_TITLE,
45+
tags: ['experimental']
4446
},
4547
[MODELS_PREF]: {
4648
type: 'array',
@@ -75,7 +77,8 @@ on the machine running Theia. Use the environment variable `ANTHROPIC_API_KEY` t
7577
}
7678
},
7779
required: ['id', 'model', 'provider']
78-
}
80+
},
81+
tags: ['experimental']
7982
},
8083
[CUSTOM_ENDPOINTS_PREF]: {
8184
type: 'array',
@@ -131,7 +134,8 @@ on the machine running Theia. Use the environment variable `ANTHROPIC_API_KEY` t
131134
'Indicates whether the streaming API shall be used. `true` by default.'),
132135
}
133136
}
134-
}
137+
},
138+
tags: ['experimental']
135139
}
136140
}
137141
};

packages/preferences/src/browser/views/components/preference-node-renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export abstract class PreferenceLeafNodeRenderer<ValueType extends JSONValue, In
313313
if (tags && tags.length > 0) {
314314
const tagsWrapper = document.createElement('span');
315315
tagsWrapper.classList.add('preference-leaf-headline-tags');
316-
const PREVIEW_INDICATOR_DESCRIPTION = nls.localizeByDefault(
316+
const PREVIEW_INDICATOR_DESCRIPTION = nls.localizeByDefault(
317317
'Preview setting: this setting controls a new feature that is still under refinement yet ready to use. Feedback is welcome.');
318318
const EXPERIMENTAL_INDICATOR_DESCRIPTION = nls.localizeByDefault(
319319
'Experimental setting: this setting controls a new feature that is actively being developed and may be unstable. It is subject to change or removal.');

0 commit comments

Comments
 (0)