Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
fa1eede
1
Parent(s):
0f0f039
tweaks
Browse files
components/Chat/PluginSelect.tsx
CHANGED
@@ -60,44 +60,5 @@ export const PluginSelect: FC<Props> = ({
|
|
60 |
}
|
61 |
}, []);
|
62 |
|
63 |
-
return
|
64 |
-
<div className="flex flex-col">
|
65 |
-
<div className="mb-1 w-full rounded border border-neutral-200 bg-transparent pr-2 text-neutral-900 dark:border-neutral-600 dark:text-white">
|
66 |
-
<select
|
67 |
-
ref={selectRef}
|
68 |
-
className="w-full cursor-pointer bg-transparent p-2"
|
69 |
-
placeholder={t('Select a plugin') || ''}
|
70 |
-
value={plugin?.id || ''}
|
71 |
-
onChange={(e) => {
|
72 |
-
onPluginChange(
|
73 |
-
PluginList.find(
|
74 |
-
(plugin) => plugin.id === e.target.value,
|
75 |
-
) as Plugin,
|
76 |
-
);
|
77 |
-
}}
|
78 |
-
onKeyDown={(e) => {
|
79 |
-
handleKeyDown(e);
|
80 |
-
}}
|
81 |
-
>
|
82 |
-
<option
|
83 |
-
key="chatgpt"
|
84 |
-
value="chatgpt"
|
85 |
-
className="dark:bg-[#343541] dark:text-white"
|
86 |
-
>
|
87 |
-
ChatGPT
|
88 |
-
</option>
|
89 |
-
|
90 |
-
{PluginList.map((plugin) => (
|
91 |
-
<option
|
92 |
-
key={plugin.id}
|
93 |
-
value={plugin.id}
|
94 |
-
className="dark:bg-[#343541] dark:text-white"
|
95 |
-
>
|
96 |
-
{plugin.name}
|
97 |
-
</option>
|
98 |
-
))}
|
99 |
-
</select>
|
100 |
-
</div>
|
101 |
-
</div>
|
102 |
-
);
|
103 |
};
|
|
|
60 |
}
|
61 |
}, []);
|
62 |
|
63 |
+
return null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
};
|
components/Chat/SystemPrompt.tsx
CHANGED
@@ -210,7 +210,7 @@ export const SystemPrompt: FC<Props> = ({
|
|
210 |
}`,
|
211 |
}}
|
212 |
placeholder={
|
213 |
-
t(`Enter a prompt
|
214 |
}
|
215 |
value={t(value) || ''}
|
216 |
rows={1}
|
|
|
210 |
}`,
|
211 |
}}
|
212 |
placeholder={
|
213 |
+
t(`Enter a prompt`) || ''
|
214 |
}
|
215 |
value={t(value) || ''}
|
216 |
rows={1}
|