Skip to content

Commit

Permalink
feat: enable ChatGPT Web Browsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sunner committed Oct 3, 2023
1 parent c4cc2b9 commit e0dce52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/bots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,7 @@ const all = [
YouChatBot.getInstance(),
];

const disabled = [
"ClaudeBot",
"ChatGPTBrowsingBot",
"AlpacaBot",
"HuggingChatBot",
"Falcon180bBot",
];
const disabled = ["ClaudeBot", "AlpacaBot", "HuggingChatBot", "Falcon180bBot"];

if (process.env.NODE_ENV !== "production") {
all.push(DevBot.getInstance());
Expand Down
5 changes: 4 additions & 1 deletion src/bots/openai/ChatGPTBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ export default class ChatGPTBot extends Bot {
onShow: () => {},
onSuppress: () => {},
onCompleted: (response) => {
console.log("Arkose response:", response);
ChatGPTBot._arkosePromise.resolve(response.token);
},
onReset: () => {},
Expand Down Expand Up @@ -207,6 +206,10 @@ export default class ChatGPTBot extends Bot {
} else
try {
const data = JSON.parse(event.data);

// Ignore messages which includes repeated content
if (data.message?.metadata?.is_complete) return;

this.setChatContext({
conversationId: data.conversation_id,
parentMessageId: data.message_id,
Expand Down

1 comment on commit e0dce52

@vercel
Copy link

@vercel vercel bot commented on e0dce52 Oct 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

chatall – ./

chatall-git-main-sunner.vercel.app
chatall-llm.vercel.app
chatall-sunner.vercel.app

Please sign in to comment.