Merge branch 'main' into feat-endpoint-style-structure

This commit is contained in:
Daniel Avila 2023-04-01 19:41:36 -04:00
commit 8fa20d9356
18 changed files with 2281 additions and 24 deletions

View file

@ -16,11 +16,12 @@ export default function Conversation({ conversation, retainView }) {
const { switchToConversation } = store.useConversation();
const [renaming, setRenaming] = useState(false);
const [titleInput, setTitleInput] = useState(title);
const inputRef = useRef(null);
const { conversationId, title } = conversation;
const [titleInput, setTitleInput] = useState(title);
const rename = manualSWR(`/api/convos/update`, 'post');
const clickHandler = async () => {

View file

@ -1,6 +1,6 @@
import { useEffect } from 'react';
import { useRecoilValue, useResetRecoilState, useSetRecoilState } from 'recoil';
import { SSE } from '~/utils/sse';
import { SSE } from '~/utils/sse.mjs';
import createPayload from '~/utils/createPayload';
import store from '~/store';

View file

@ -6,7 +6,7 @@ import remarkMath from 'remark-math';
import remarkGfm from 'remark-gfm';
import rehypeRaw from 'rehype-raw'
import CodeBlock from './CodeBlock';
import { langSubset } from '~/utils/languages';
import { langSubset } from '~/utils/languages.mjs';
const Content = React.memo(({ content }) => {
let rehypePlugins = [