From d0ecaabfd836b9dedd89eb7522ee8a0d8139c86d Mon Sep 17 00:00:00 2001 From: Daniel Avila Date: Thu, 9 Mar 2023 20:29:44 -0500 Subject: [PATCH] feat: cites text with links --- README.md | 13 +++++++++++-- api/server/routes/askBing.js | 2 +- api/server/routes/askSydney.js | 2 +- .../src/components/Conversations/DeleteButton.jsx | 1 - client/src/components/Nav/NewChat.jsx | 1 - 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c32fc798f4..c0e1ee4afa 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,23 @@ https://user-images.githubusercontent.com/110412045/223754183-8b7f45ce-6517-4bd5 ## Updates
+2023-03-09 +Released v.0.0.2 + +Adds Sydney (jailbroken Bing AI) to the model menu. Thank you [DavesDevFails](https://github.com/DavesDevFails) for bringing it to my attention in this [issue](https://github.com/danny-avila/chatgpt-clone/issues/13). Bing/Sydney now correctly cite links, more styling to come. Fix some overlooked bugs, and model menu doesn't close upon deleting a customGpt. + + +I've re-enabled the ChatGPT browser client (free version) since it might be working for most people, it no longer works for me. Sydney is the best free route anyway. +
+ +
+
2023-03-07 Due to increased interest in the repo, I've dockerized the app as of this update for quick setup! See setup instructions below. I realize this still takes some time with installing docker dependencies, so it's on the roadmap to have a deployed demo. Besides this, I've made major improvements for a lot of the existing features across the board, mainly UI/UX. Also worth noting, the method to access the Free Version is no longer working, so I've removed it from model selection until further notice.
- -
Previous Updates
diff --git a/api/server/routes/askBing.js b/api/server/routes/askBing.js index 36218320b6..42718b9d91 100644 --- a/api/server/routes/askBing.js +++ b/api/server/routes/askBing.js @@ -42,7 +42,7 @@ router.post('/', async (req, res) => { console.log('BING RESPONSE'); // console.dir(response, { depth: null }); - const hasCitations = citationRegex.test(response.response); + const hasCitations = response.response.match(citationRegex)?.length > 0; userMessage.conversationSignature = convo.conversationSignature || response.conversationSignature; diff --git a/api/server/routes/askSydney.js b/api/server/routes/askSydney.js index b328f879fa..149b8b1c45 100644 --- a/api/server/routes/askSydney.js +++ b/api/server/routes/askSydney.js @@ -43,7 +43,7 @@ router.post('/', async (req, res) => { console.log('SYDNEY RESPONSE'); console.log(response.response); // console.dir(response, { depth: null }); - const hasCitations = citationRegex.test(response.response); + const hasCitations = response.response.match(citationRegex)?.length > 0; // Save sydney response response.id = response.messageId; diff --git a/client/src/components/Conversations/DeleteButton.jsx b/client/src/components/Conversations/DeleteButton.jsx index 423a8a2c21..03c9f47f81 100644 --- a/client/src/components/Conversations/DeleteButton.jsx +++ b/client/src/components/Conversations/DeleteButton.jsx @@ -14,7 +14,6 @@ export default function DeleteButton({ conversationId, renaming, cancelHandler } () => { dispatch(setMessages([])); dispatch(removeConvo(conversationId)); - // dispatch(setConversation({ title: 'New chat', conversationId: null, parentMessageId: null })); dispatch(setNewConvo()); } ); diff --git a/client/src/components/Nav/NewChat.jsx b/client/src/components/Nav/NewChat.jsx index 70e56c4427..540c023647 100644 --- a/client/src/components/Nav/NewChat.jsx +++ b/client/src/components/Nav/NewChat.jsx @@ -11,7 +11,6 @@ export default function NewChat() { dispatch(setText('')); dispatch(setMessages([])); dispatch(setNewConvo()); - // dispatch(setConversation({ title: 'New Chat', error: false, conversationId: null, parentMessageId: null })); }; return (