diff --git a/api/app/google/GoogleClient.js b/api/app/google/GoogleClient.js index a494b1a690..819282b4d6 100644 --- a/api/app/google/GoogleClient.js +++ b/api/app/google/GoogleClient.js @@ -45,7 +45,7 @@ class GoogleAgent { } this.options.examples = this.options.examples.filter( - obj => obj.input.content !== '' && obj.output.content !== '' + (obj) => obj.input.content !== '' && obj.output.content !== '' ); const modelOptions = this.options.modelOptions || {}; @@ -375,7 +375,7 @@ class GoogleAgent { let currentMessageId = parentMessageId; while (currentMessageId) { // eslint-disable-next-line no-loop-func - const message = messages.find(m => m.messageId === currentMessageId); + const message = messages.find((m) => m.messageId === currentMessageId); if (!message) { break; } @@ -387,7 +387,7 @@ class GoogleAgent { return []; } - return orderedMessages.map(msg => ({ + return orderedMessages.map((msg) => ({ isCreatedByUser: msg.isCreatedByUser, content: msg.text })); diff --git a/api/lib/db/migrateDb.js b/api/lib/db/migrateDb.js index c976251a5e..bff1f0c8df 100644 --- a/api/lib/db/migrateDb.js +++ b/api/lib/db/migrateDb.js @@ -110,7 +110,7 @@ async function migrateDb() { ret[0] = await migrateToStrictFollowParentMessageIdChain(); ret[1] = await migrateToSupportBetterCustomization(); - const isMigrated = !!ret.find(element => !element?.noNeed); + const isMigrated = !!ret.find((element) => !element?.noNeed); if (!isMigrated) console.log('[Migrate] Nothing to migrate'); } diff --git a/api/lib/parse/getCitations.js b/api/lib/parse/getCitations.js index 69e142e8b2..63a47e0760 100644 --- a/api/lib/parse/getCitations.js +++ b/api/lib/parse/getCitations.js @@ -7,7 +7,7 @@ const getCitations = (res) => { if (!textBlocks) return ''; let links = textBlocks[textBlocks.length - 1]?.text.match(regex); if (links?.length === 0 || !links) return ''; - links = links.map(link => link.trim()); + links = links.map((link) => link.trim()); return links.join('\n'); }; diff --git a/api/models/Conversation.js b/api/models/Conversation.js index 4b4f08708a..e91299e7f4 100644 --- a/api/models/Conversation.js +++ b/api/models/Conversation.js @@ -57,7 +57,7 @@ module.exports = { // will handle a syncing solution soon const deletedConvoIds = []; - convoIds.forEach(convo => + convoIds.forEach((convo) => promises.push( Conversation.findOne({ user, @@ -120,7 +120,7 @@ module.exports = { }, deleteConvos: async (user, filter) => { let toRemove = await Conversation.find({ ...filter, user }).select('conversationId'); - const ids = toRemove.map(instance => instance.conversationId); + const ids = toRemove.map((instance) => instance.conversationId); let deleteCount = await Conversation.deleteMany({ ...filter, user }).exec(); deleteCount.messages = await deleteMessages({ conversationId: { $in: ids } }); return deleteCount; diff --git a/api/models/Preset.js b/api/models/Preset.js index de33370e60..1d4094c3f4 100644 --- a/api/models/Preset.js +++ b/api/models/Preset.js @@ -39,7 +39,7 @@ module.exports = { }, deletePresets: async (user, filter) => { let toRemove = await Preset.find({ ...filter, user }).select('presetId'); - const ids = toRemove.map(instance => instance.presetId); + const ids = toRemove.map((instance) => instance.presetId); let deleteCount = await Preset.deleteMany({ ...filter, user }).exec(); return deleteCount; } diff --git a/api/models/plugins/mongoMeili.js b/api/models/plugins/mongoMeili.js index ef65da7d3e..d157eccacc 100644 --- a/api/models/plugins/mongoMeili.js +++ b/api/models/plugins/mongoMeili.js @@ -54,7 +54,7 @@ const createMeiliMongooseModel = function ({ index, indexName, client, attribute // Find objects into mongodb matching `objectID` from Meili search const query = {}; // query[primaryKey] = { $in: _.map(data.hits, primaryKey) }; - query[primaryKey] = _.map(data.hits, hit => cleanUpPrimaryKeyValue(hit[primaryKey])); + query[primaryKey] = _.map(data.hits, (hit) => cleanUpPrimaryKeyValue(hit[primaryKey])); // console.log('query', query); const hitsFromMongoose = await this.find( query, diff --git a/api/server/controllers/error.controller.js b/api/server/controllers/error.controller.js index e22b21c123..1d32f306a5 100644 --- a/api/server/controllers/error.controller.js +++ b/api/server/controllers/error.controller.js @@ -10,8 +10,8 @@ const handleDuplicateKeyError = (err, res) => { //handle validation errors const handleValidationError = (err, res) => { console.log('congrats you hit the validation middleware'); - let errors = Object.values(err.errors).map(el => el.message); - let fields = Object.values(err.errors).map(el => el.path); + let errors = Object.values(err.errors).map((el) => el.message); + let fields = Object.values(err.errors).map((el) => el.path); let code = 400; if (errors.length > 1) { const formattedErrors = errors.join(' '); diff --git a/api/server/routes/ask/askBingAI.js b/api/server/routes/ask/askBingAI.js index ef319e7cd6..25e61bcfc1 100644 --- a/api/server/routes/ask/askBingAI.js +++ b/api/server/routes/ask/askBingAI.js @@ -164,7 +164,7 @@ const ask = async ({ text: await handleText(response, true), suggestions: response.details.suggestedResponses && - response.details.suggestedResponses.map(s => s.text), + response.details.suggestedResponses.map((s) => s.text), unfinished: false, cancelled: false, error: false diff --git a/api/server/routes/ask/askChatGPTBrowser.js b/api/server/routes/ask/askChatGPTBrowser.js index 068e3f4dbc..97fad58d84 100644 --- a/api/server/routes/ask/askChatGPTBrowser.js +++ b/api/server/routes/ask/askChatGPTBrowser.js @@ -39,7 +39,7 @@ router.post('/', requireJwtAuth, async (req, res) => { }; const availableModels = getChatGPTBrowserModels(); - if (availableModels.find(model => model === endpointOption.model) === undefined) + if (availableModels.find((model) => model === endpointOption.model) === undefined) return handleError(res, { text: 'Illegal request: model' }); console.log('ask log', { diff --git a/api/server/routes/ask/askGoogle.js b/api/server/routes/ask/askGoogle.js index 8ff0e14584..60eadc5837 100644 --- a/api/server/routes/ask/askGoogle.js +++ b/api/server/routes/ask/askGoogle.js @@ -27,7 +27,7 @@ router.post('/', requireJwtAuth, async (req, res) => { }; const availableModels = ['chat-bison', 'text-bison']; - if (availableModels.find(model => model === endpointOption.modelOptions.model) === undefined) { + if (availableModels.find((model) => model === endpointOption.modelOptions.model) === undefined) { return handleError(res, { text: `Illegal request: model` }); } diff --git a/api/server/routes/ask/askOpenAI.js b/api/server/routes/ask/askOpenAI.js index 6a7515417e..8fe728792a 100644 --- a/api/server/routes/ask/askOpenAI.js +++ b/api/server/routes/ask/askOpenAI.js @@ -64,7 +64,7 @@ router.post('/', requireJwtAuth, async (req, res) => { }; const availableModels = getOpenAIModels(); - if (availableModels.find(model => model === endpointOption.model) === undefined) + if (availableModels.find((model) => model === endpointOption.model) === undefined) return handleError(res, { text: 'Illegal request: model' }); console.log('ask log', { diff --git a/api/server/routes/presets.js b/api/server/routes/presets.js index 235a1fe314..59a1d6051d 100644 --- a/api/server/routes/presets.js +++ b/api/server/routes/presets.js @@ -40,7 +40,7 @@ router.post('/delete', requireJwtAuth, async (req, res) => { try { await deletePresets(req.user.id, filter); - const presets = (await getPresets(req.user.id)).map(preset => preset.toObject()); + const presets = (await getPresets(req.user.id)).map((preset) => preset.toObject()); // console.log('delete preset response', presets); res.status(201).send(presets); diff --git a/api/server/services/auth.service.js b/api/server/services/auth.service.js index c382231bd8..cdad995398 100644 --- a/api/server/services/auth.service.js +++ b/api/server/services/auth.service.js @@ -26,7 +26,7 @@ const loginUser = async (user) => { const logoutUser = async (user, refreshToken) => { User.findById(user._id).then((user) => { - const tokenIndex = user.refreshToken.findIndex(item => item.refreshToken === refreshToken); + const tokenIndex = user.refreshToken.findIndex((item) => item.refreshToken === refreshToken); if (tokenIndex !== -1) { user.refreshToken.id(user.refreshToken[tokenIndex]._id).remove(); diff --git a/api/utils/LoggingSystem.js b/api/utils/LoggingSystem.js index 679e93c1d2..b22c69b508 100644 --- a/api/utils/LoggingSystem.js +++ b/api/utils/LoggingSystem.js @@ -64,7 +64,7 @@ let level = levels.INFO; module.exports = { levels, - setLevel: l => (level = l), + setLevel: (l) => (level = l), log: { trace: (msg) => { if (level <= levels.TRACE) return; diff --git a/client/src/components/Auth/Login.tsx b/client/src/components/Auth/Login.tsx index 45a28581a1..facaf8f832 100644 --- a/client/src/components/Auth/Login.tsx +++ b/client/src/components/Auth/Login.tsx @@ -42,7 +42,7 @@ function Login() { className="mt-6" aria-label="Login form" method="POST" - onSubmit={handleSubmit(data => login(data))} + onSubmit={handleSubmit((data) => login(data))} >
diff --git a/client/src/components/Auth/Registration.tsx b/client/src/components/Auth/Registration.tsx index 54ddea0374..38c04f5570 100644 --- a/client/src/components/Auth/Registration.tsx +++ b/client/src/components/Auth/Registration.tsx @@ -55,7 +55,7 @@ function Registration() { className="mt-6" aria-label="Registration form" method="POST" - onSubmit={handleSubmit(data => onRegisterUserFormSubmit(data))} + onSubmit={handleSubmit((data) => onRegisterUserFormSubmit(data))} >
@@ -225,7 +225,7 @@ function Registration() { return false; }} {...register('confirm_password', { - validate: value => value === password || 'Passwords do not match' + validate: (value) => value === password || 'Passwords do not match' })} aria-invalid={!!errors.confirm_password} className="peer block w-full appearance-none rounded-t-md border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-500 focus:outline-none focus:ring-0" diff --git a/client/src/components/Auth/ResetPassword.tsx b/client/src/components/Auth/ResetPassword.tsx index f765c0c127..cb953590a1 100644 --- a/client/src/components/Auth/ResetPassword.tsx +++ b/client/src/components/Auth/ResetPassword.tsx @@ -129,7 +129,7 @@ function ResetPassword() { return false; }} {...register('confirm_password', { - validate: value => value === password || 'Passwords do not match' + validate: (value) => value === password || 'Passwords do not match' })} aria-invalid={!!errors.confirm_password} className="peer block w-full appearance-none rounded-t-md border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-500 focus:outline-none focus:ring-0" diff --git a/client/src/components/Conversations/Conversation.jsx b/client/src/components/Conversations/Conversation.jsx index eda119ca52..47676b20ff 100644 --- a/client/src/components/Conversations/Conversation.jsx +++ b/client/src/components/Conversations/Conversation.jsx @@ -65,7 +65,7 @@ export default function Conversation({ conversation, retainView }) { if (updateConvoMutation.isSuccess) { refreshConversations(); if (conversationId == currentConversation?.conversationId) { - setCurrentConversation(prevState => ({ + setCurrentConversation((prevState) => ({ ...prevState, title: titleInput })); @@ -99,7 +99,7 @@ export default function Conversation({ conversation, retainView }) { type="text" className="m-0 mr-0 w-full border border-blue-500 bg-transparent p-0 text-sm leading-tight outline-none" value={titleInput} - onChange={e => setTitleInput(e.target.value)} + onChange={(e) => setTitleInput(e.target.value)} onBlur={onRename} onKeyDown={handleKeyDown} /> diff --git a/client/src/components/Conversations/Pages.jsx b/client/src/components/Conversations/Pages.jsx index 80ae5ffdca..754d45bbf2 100644 --- a/client/src/components/Conversations/Pages.jsx +++ b/client/src/components/Conversations/Pages.jsx @@ -1,7 +1,7 @@ import React from 'react'; export default function Pages({ pageNumber, pages, nextPage, previousPage }) { - const clickHandler = func => async (e) => { + const clickHandler = (func) => async (e) => { e.preventDefault(); await func(); }; diff --git a/client/src/components/Endpoints/BingAI/Settings.jsx b/client/src/components/Endpoints/BingAI/Settings.jsx index 787515bd96..18c2b4ce93 100644 --- a/client/src/components/Endpoints/BingAI/Settings.jsx +++ b/client/src/components/Endpoints/BingAI/Settings.jsx @@ -17,7 +17,7 @@ function Settings(props) { const setContext = setOption('context'); const setSystemMessage = setOption('systemMessage'); const setJailbreak = setOption('jailbreak'); - const setToneStyle = value => setOption('toneStyle')(value.toLowerCase()); + const setToneStyle = (value) => setOption('toneStyle')(value.toLowerCase()); const debouncedContext = useDebounce(context, 250); const updateTokenCountMutation = useUpdateTokenCountMutation(); @@ -71,7 +71,7 @@ function Settings(props) { id="context" disabled={readonly} value={context || ''} - onChange={e => setContext(e.target.value || null)} + onChange={(e) => setContext(e.target.value || null)} placeholder="Bing can use up to 7k tokens for 'context', which it can reference for the conversation. The specific limit is not known but may run into errors exceeding 7k tokens" className={cn( defaultTextProps, @@ -123,7 +123,7 @@ function Settings(props) { id="systemMessage" disabled={readonly} value={systemMessage || ''} - onChange={e => setSystemMessage(e.target.value || null)} + onChange={(e) => setSystemMessage(e.target.value || null)} placeholder="WARNING: Misuse of this feature can get you BANNED from using Bing! Click on 'System Message' for full instructions and the default message if omitted, which is the 'Sydney' preset that is considered safe." className={cn( defaultTextProps, diff --git a/client/src/components/Endpoints/EditPresetDialog.jsx b/client/src/components/Endpoints/EditPresetDialog.jsx index a0b47a7a09..7e93ad7fe0 100644 --- a/client/src/components/Endpoints/EditPresetDialog.jsx +++ b/client/src/components/Endpoints/EditPresetDialog.jsx @@ -131,7 +131,7 @@ const EditPresetDialog = ({ open, onOpenChange, preset: _preset, title }) => { useEffect(() => { setPreset(_preset); - // eslint-disable-next-line react-hooks/exhaustive-deps + // eslint-disable-next-line react-hooks/exhaustive-deps }, [open]); return ( diff --git a/client/src/components/Endpoints/EndpointOptionsDialog.jsx b/client/src/components/Endpoints/EndpointOptionsDialog.jsx index 321b885b46..6a2356015b 100644 --- a/client/src/components/Endpoints/EndpointOptionsDialog.jsx +++ b/client/src/components/Endpoints/EndpointOptionsDialog.jsx @@ -22,10 +22,10 @@ const EndpointOptionsDialog = ({ open, onOpenChange, preset: _preset, title }) = setEndpointName('PaLM'); } - const setOption = param => (newValue) => { + const setOption = (param) => (newValue) => { let update = {}; update[param] = newValue; - setPreset(prevState => ({ + setPreset((prevState) => ({ ...prevState, ...update })); diff --git a/client/src/components/Endpoints/Google/Examples.jsx b/client/src/components/Endpoints/Google/Examples.jsx index 4225852cce..017dc443ac 100644 --- a/client/src/components/Endpoints/Google/Examples.jsx +++ b/client/src/components/Endpoints/Google/Examples.jsx @@ -29,7 +29,7 @@ function Examples({ readonly, examples, setExample, addExample, removeExample, e id={`input-${idx}`} disabled={readonly} value={example?.input?.content || ''} - onChange={e => setExample(idx, 'input', e.target.value || null)} + onChange={(e) => setExample(idx, 'input', e.target.value || null)} placeholder="Set example input. Example is ignored if empty." className={cn( defaultTextProps, @@ -53,7 +53,7 @@ function Examples({ readonly, examples, setExample, addExample, removeExample, e id={`output-${idx}`} disabled={readonly} value={example?.output?.content || ''} - onChange={e => setExample(idx, 'output', e.target.value || null)} + onChange={(e) => setExample(idx, 'output', e.target.value || null)} placeholder={`Set example output. Example is ignored if empty.`} className={cn( defaultTextProps, diff --git a/client/src/components/Endpoints/OpenAI/Settings.jsx b/client/src/components/Endpoints/OpenAI/Settings.jsx index 7c067064f8..03d22afbd9 100644 --- a/client/src/components/Endpoints/OpenAI/Settings.jsx +++ b/client/src/components/Endpoints/OpenAI/Settings.jsx @@ -66,7 +66,7 @@ function Settings(props) { id="chatGptLabel" disabled={readonly} value={chatGptLabel || ''} - onChange={e => setChatGptLabel(e.target.value || null)} + onChange={(e) => setChatGptLabel(e.target.value || null)} placeholder="Set a custom name for ChatGPT" className={cn( defaultTextProps, @@ -82,7 +82,7 @@ function Settings(props) { id="promptPrefix" disabled={readonly} value={promptPrefix || ''} - onChange={e => setPromptPrefix(e.target.value || null)} + onChange={(e) => setPromptPrefix(e.target.value || null)} placeholder="Set custom instructions. Defaults to: 'You are ChatGPT, a large language model trained by OpenAI.'" className={cn( defaultTextProps, @@ -102,7 +102,7 @@ function Settings(props) { id="temp-int" disabled={readonly} value={temperature} - onChange={value => setTemperature(value)} + onChange={(value) => setTemperature(value)} max={2} min={0} step={0.01} @@ -119,7 +119,7 @@ function Settings(props) { setTemperature(value[0])} + onValueChange={(value) => setTemperature(value[0])} doubleClickHandler={() => setTemperature(1)} max={2} min={0} @@ -139,7 +139,7 @@ function Settings(props) { id="top-p-int" disabled={readonly} value={topP} - onChange={value => setTopP(value)} + onChange={(value) => setTopP(value)} max={1} min={0} step={0.01} @@ -156,7 +156,7 @@ function Settings(props) { setTopP(value[0])} + onValueChange={(value) => setTopP(value[0])} doubleClickHandler={() => setTopP(1)} max={1} min={0} @@ -177,7 +177,7 @@ function Settings(props) { id="freq-penalty-int" disabled={readonly} value={freqP} - onChange={value => setFreqP(value)} + onChange={(value) => setFreqP(value)} max={2} min={-2} step={0.01} @@ -194,7 +194,7 @@ function Settings(props) { setFreqP(value[0])} + onValueChange={(value) => setFreqP(value[0])} doubleClickHandler={() => setFreqP(0)} max={2} min={-2} @@ -215,7 +215,7 @@ function Settings(props) { id="pres-penalty-int" disabled={readonly} value={presP} - onChange={value => setPresP(value)} + onChange={(value) => setPresP(value)} max={2} min={-2} step={0.01} @@ -232,7 +232,7 @@ function Settings(props) { setPresP(value[0])} + onValueChange={(value) => setPresP(value[0])} doubleClickHandler={() => setPresP(0)} max={2} min={-2} diff --git a/client/src/components/Endpoints/SaveAsPresetDialog.jsx b/client/src/components/Endpoints/SaveAsPresetDialog.jsx index 6df655b761..5689661bb9 100644 --- a/client/src/components/Endpoints/SaveAsPresetDialog.jsx +++ b/client/src/components/Endpoints/SaveAsPresetDialog.jsx @@ -44,7 +44,7 @@ const SaveAsPresetDialog = ({ open, onOpenChange, preset }) => { setTitle(e.target.value || '')} + onChange={(e) => setTitle(e.target.value || '')} placeholder="Set a custom name, in case you can find this preset" className={cn( defaultTextProps, diff --git a/client/src/components/Input/BingAIOptions/index.jsx b/client/src/components/Input/BingAIOptions/index.jsx index 56f6b89ecf..3237e8ef8d 100644 --- a/client/src/components/Input/BingAIOptions/index.jsx +++ b/client/src/components/Input/BingAIOptions/index.jsx @@ -21,7 +21,7 @@ function BingAIOptions({ show }) { if (endpoint !== 'bingAI') return null; if (conversationId !== 'new' && !show) return null; - const triggerAdvancedMode = () => setAdvancedMode(prev => !prev); + const triggerAdvancedMode = () => setAdvancedMode((prev) => !prev); const switchToSimpleMode = () => { setAdvancedMode(false); @@ -31,10 +31,10 @@ function BingAIOptions({ show }) { setSaveAsDialogShow(true); }; - const setOption = param => (newValue) => { + const setOption = (param) => (newValue) => { let update = {}; update[param] = newValue; - setConversation(prevState => ({ + setConversation((prevState) => ({ ...prevState, ...update })); @@ -48,7 +48,7 @@ function BingAIOptions({ show }) { defaultClasses, 'font-medium data-[state=active]:text-white text-xs text-white' ); - const selectedClass = val => val + '-tab ' + defaultSelected; + const selectedClass = (val) => val + '-tab ' + defaultSelected; return ( <> @@ -61,7 +61,7 @@ function BingAIOptions({ show }) { setOption('jailbreak')(value === 'Sydney')} + setValue={(value) => setOption('jailbreak')(value === 'Sydney')} availableValues={['BingAI', 'Sydney']} showAbove={true} showLabel={false} @@ -78,7 +78,7 @@ function BingAIOptions({ show }) { cardStyle + ' z-50 flex h-[40px] flex-none items-center justify-center px-0 hover:bg-slate-50 dark:hover:bg-gray-600' } - onValueChange={value => setOption('toneStyle')(value.toLowerCase())} + onValueChange={(value) => setOption('toneStyle')(value.toLowerCase())} > (newValue) => { + const setOption = (param) => (newValue) => { let update = {}; update[param] = newValue; - setConversation(prevState => ({ + setConversation((prevState) => ({ ...prevState, ...update })); diff --git a/client/src/components/Input/GoogleOptions/index.jsx b/client/src/components/Input/GoogleOptions/index.jsx index 382c1e9392..c14965fc38 100644 --- a/client/src/components/Input/GoogleOptions/index.jsx +++ b/client/src/components/Input/GoogleOptions/index.jsx @@ -29,8 +29,8 @@ function GoogleOptions() { const models = endpointsConfig?.['google']?.['availableModels'] || []; - const triggerAdvancedMode = () => setAdvancedMode(prev => !prev); - const triggerExamples = () => setShowExamples(prev => !prev); + const triggerAdvancedMode = () => setAdvancedMode((prev) => !prev); + const triggerExamples = () => setShowExamples((prev) => !prev); const switchToSimpleMode = () => { setAdvancedMode(false); @@ -40,10 +40,10 @@ function GoogleOptions() { setSaveAsDialogShow(true); }; - const setOption = param => (newValue) => { + const setOption = (param) => (newValue) => { let update = {}; update[param] = newValue; - setConversation(prevState => ({ + setConversation((prevState) => ({ ...prevState, ...update })); @@ -56,7 +56,7 @@ function GoogleOptions() { currentExample[type] = { content: newValue }; current[i] = currentExample; update.examples = current; - setConversation(prevState => ({ + setConversation((prevState) => ({ ...prevState, ...update })); @@ -67,7 +67,7 @@ function GoogleOptions() { let current = conversation?.examples.slice() || []; current.push({ input: { content: '' }, output: { content: '' } }); update.examples = current; - setConversation(prevState => ({ + setConversation((prevState) => ({ ...prevState, ...update })); @@ -78,7 +78,7 @@ function GoogleOptions() { let current = conversation?.examples.slice() || []; if (current.length <= 1) { update.examples = [{ input: { content: '' }, output: { content: '' } }]; - setConversation(prevState => ({ + setConversation((prevState) => ({ ...prevState, ...update })); @@ -86,7 +86,7 @@ function GoogleOptions() { } current.pop(); update.examples = current; - setConversation(prevState => ({ + setConversation((prevState) => ({ ...prevState, ...update })); diff --git a/client/src/components/Input/NewConversationMenu/EndpointItem.jsx b/client/src/components/Input/NewConversationMenu/EndpointItem.jsx index 97852e087d..5d03a0a29e 100644 --- a/client/src/components/Input/NewConversationMenu/EndpointItem.jsx +++ b/client/src/components/Input/NewConversationMenu/EndpointItem.jsx @@ -37,7 +37,7 @@ export default function ModelItem({ endpoint, value, onSelect }) { > {icon} {alternateName[endpoint] || endpoint} - {!!['azureOpenAI', 'openAI'].find(e => e === endpoint) && $} + {!!['azureOpenAI', 'openAI'].find((e) => e === endpoint) && $}
{isUserProvided ? (