Skip to content

Commit a4c8e7f

Browse files
committed
Limit invocation count to 3 and update the context size warning threshold description
- add missing translations to[Fragment] - limit invocation count to 3
1 parent 3bf3888 commit a4c8e7f

3 files changed

Lines changed: 18 additions & 25 deletions

File tree

‎apps/editor/src/views/settings/frontend/i18n/translations/preferences.ts‎

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -200,23 +200,22 @@ export const preferences = {
200200
bg: 'Праг за предупреждение за размер на контекст'
201201
},
202202
'preferences.context-size-warning-threshold.description': {
203-
en: 'Warn me when context exceeds the set threshold token count.',
204-
pl: 'Ostrzegaj mnie, gdy kontekst przekroczy ustawiony próg liczby tokenów.',
205-
'zh-cn': '当上下文超过设定的 Token 数量阈值时发出警告。',
206-
ja: 'コンテキストが設定されたしきい値のトークン数を超えたときに警告します。',
207-
'zh-tw': '當上下文超過設定的 Token 數量閾值時發出警告。',
208-
de: 'Warnen, wenn der Kontext den festgelegten Token-Schwellenwert überschreitet.',
209-
es: 'Advertirme cuando el contexto supere el umbral de recuento de tokens establecido.',
210-
fr: "M'avertir lorsque le contexte dépasse le seuil de nombre de tokens défini.",
211-
'pt-br':
212-
'Avisar-me quando o contexto exceder o limite de contagem de tokens definido.',
213-
ru: 'Предупреждать, когда контекст превышает заданный порог количества токенов.',
214-
ko: '컨텍스트가 설정된 임계값 토큰 수를 초과하면 경고합니다.',
215-
it: 'Avvisami quando il contesto supera la soglia impostata del conteggio dei token.',
216-
tr: 'Bağlam ayarlanan eşik belirteç sayısını aştığında beni uyar.',
217-
cs: 'Varovat, když kontext překročí nastavenou prahovou hodnotu počtu tokenů.',
218-
hu: 'Figyelmeztetés, ha a kontextus meghaladja a beállított token-szám küszöbértéket.',
219-
bg: 'Предупреждаване, когато контекстът надвиши зададения праг за брой токени.'
203+
en: 'A virtual context size limit.',
204+
pl: 'Wirtualny limit rozmiaru kontekstu.',
205+
'zh-cn': '虚拟上下文大小限制。',
206+
ja: '仮想的なコンテキストサイズの制限。',
207+
'zh-tw': '虛擬上下文大小限制。',
208+
de: 'Eine virtuelle Begrenzung der Kontextgröße.',
209+
es: 'Un límite virtual de tamaño de contexto.',
210+
fr: 'Une limite virtuelle de taille de contexte.',
211+
'pt-br': 'Um limite virtual de tamanho de contexto.',
212+
ru: 'Виртуальный лимит размера контекста.',
213+
ko: '가상 컨텍스트 크기 제한입니다.',
214+
it: 'Un limite virtuale della dimensione del contesto.',
215+
tr: 'Sanal bir bağlam boyutu sınırı.',
216+
cs: 'Virtuální limit velikosti kontextu.',
217+
hu: 'Egy virtuális kontextusméret-korlát.',
218+
bg: 'Виртуален лимит за размер на контекста.'
220219
},
221220
'preferences.check-new-files.title': {
222221
en: 'Check New Files',

‎packages/ui/src/components/editor/panel/prompts/PromptField/PromptField.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ export const PromptField: React.FC<PromptFieldProps> = (props) => {
466466
{is_invocation_count_hovered && !is_invocation_dropdown_open && (
467467
<Tooltip
468468
message={props.translations.invocation_count}
469-
details={is_mac ? '⌥X 1-5' : 'Alt+X 1-5'}
469+
details={is_mac ? '⌥X 1-3' : 'Alt+X 1-3'}
470470
offset={48}
471471
align="right"
472472
/>
@@ -645,7 +645,7 @@ export const PromptField: React.FC<PromptFieldProps> = (props) => {
645645
</button>
646646
{is_invocation_dropdown_open && (
647647
<DropdownMenu
648-
items={[1, 2, 3, 4, 5].map((count) => ({
648+
items={[1, 2, 3].map((count) => ({
649649
label: `${count}×`,
650650
checked: count == props.invocation_count,
651651
shortcut: is_mac ? `⌥X ${count}` : `Alt+X ${count}`,

‎packages/ui/src/components/editor/panel/prompts/PromptField/hooks/use-keyboard-shortcuts.ts‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ export const use_keyboard_shortcuts = (
4646
case 'Digit3':
4747
count = 3
4848
break
49-
case 'Digit4':
50-
count = 4
51-
break
52-
case 'Digit5':
53-
count = 5
54-
break
5549
}
5650

5751
if (count > 0) {

0 commit comments

Comments
 (0)