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:
Danny Avila 2023-07-06 21:03:31 -04:00 committed by GitHub
parent 69d192bac3
commit 2607f157d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 19 additions and 289 deletions

View file

@ -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 = {};

View file

@ -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';