mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 19:00:13 +01:00
Release: 0.5.3 (#599)
* release: 0.5.3, add extra linting rule and minor fix for EndpointDialog * chore: revert to deprecated Message Classes as weird behavior seen in linux * chore(api): remove unused test scripts chore(package.json): remove unused langchain dependency * chore(.gitignore): add /images directory to the ignore list
This commit is contained in:
parent
69d192bac3
commit
2607f157d3
10 changed files with 19 additions and 289 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import exportFromJSON from 'export-from-json';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import { Dialog, DialogButton, DialogTemplate } from '~/components/';
|
||||
import { Dialog, DialogButton, DialogTemplate } from '~/components';
|
||||
import SaveAsPresetDialog from './SaveAsPresetDialog';
|
||||
import cleanupPreset from '~/utils/cleanupPreset';
|
||||
|
||||
import { alternateName } from '~/utils';
|
||||
import Settings from './Settings';
|
||||
|
||||
import store from '~/store';
|
||||
|
|
@ -12,18 +12,9 @@ import store from '~/store';
|
|||
// A preset dialog to show readonly preset values.
|
||||
const EndpointOptionsDialog = ({ open, onOpenChange, preset: _preset, title }) => {
|
||||
const [preset, setPreset] = useState(_preset);
|
||||
const [endpointName, setEndpointName] = useState(preset?.endpoint);
|
||||
|
||||
const [saveAsDialogShow, setSaveAsDialogShow] = useState(false);
|
||||
const endpointsConfig = useRecoilValue(store.endpointsConfig);
|
||||
|
||||
if (endpointName === 'google') {
|
||||
setEndpointName('PaLM');
|
||||
}
|
||||
|
||||
if (endpointName === 'gptPlugins') {
|
||||
setEndpointName('Plugins');
|
||||
}
|
||||
const endpointName = alternateName[preset?.endpoint] ?? 'Endpoint';
|
||||
|
||||
const setOption = (param) => (newValue) => {
|
||||
let update = {};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import React, { useState }from 'react';
|
||||
import React, { useState } from 'react';
|
||||
import HelpText from './HelpText';
|
||||
import GoogleConfig from './GoogleConfig';
|
||||
import OpenAIConfig from './OpenAIConfig';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue