diff --git a/api/.env.example b/api/.env.example index f8b5a17596..81c4cd5989 100644 --- a/api/.env.example +++ b/api/.env.example @@ -59,9 +59,9 @@ OPENAI_MODELS=gpt-3.5-turbo,gpt-3.5-turbo-0301,text-davinci-003,gpt-4 ########################## # Also used for Sydney and jailbreak -# As of 5/23/23, to use Bing, you will need your full cookie string from bing.com. Use dev tools or an extension while -# logged into the site to view it in your network request Cookie header value. For full instructions, see my comment here: -# https://github.com/waylaidwanderer/node-chatgpt-api/issues/378#issuecomment-1559868368 +# To get your Access token for Bing, login to https://www.bing.com +# Use dev tools or an extension while logged into the site to copy the content of the _U cookie. +#If this fails, follow these instructions https://github.com/danny-avila/chatgpt-clone/issues/370#issuecomment-1560382302 to provide the full cookie strings. # Set to "user_provided" to allow the user to provide its token from the UI. # Leave it blank to disable this endpoint. BINGAI_TOKEN="user_provided" diff --git a/api/package.json b/api/package.json index 0e62fedf1b..6b3b240ecf 100644 --- a/api/package.json +++ b/api/package.json @@ -21,7 +21,7 @@ "dependencies": { "@dqbd/tiktoken": "^1.0.2", "@keyv/mongo": "^2.1.8", - "@waylaidwanderer/chatgpt-api": "^1.36.0", + "@waylaidwanderer/chatgpt-api": "^1.36.3", "axios": "^1.3.4", "bcryptjs": "^2.4.3", "cookie": "^0.5.0", diff --git a/client/src/components/Input/SetTokenDialog/index.jsx b/client/src/components/Input/SetTokenDialog/index.jsx index 1f73c597b9..4aec4dd501 100644 --- a/client/src/components/Input/SetTokenDialog/index.jsx +++ b/client/src/components/Input/SetTokenDialog/index.jsx @@ -43,16 +43,18 @@ const SetTokenDialog = ({ open, onOpenChange, endpoint }) => { const helpText = { bingAI: ( - {`As of 5/23/23, to use Bing, you will need your full cookie string from bing.com. Use dev tools or an extension while - logged into the site to view it in your network request Cookie header value. For full instructions, see my `} + {`To get your Access token for Bing, login to https://www.bing.com. + Use dev tools or an extension while logged into the site to copy the content of the _U cookie. + If this fails, follow these `} - comment here + instructions + {` to provide the full cookie strings.`} ), chatGPTBrowser: ( diff --git a/package-lock.json b/package-lock.json index 8cda5bf1a6..2ff14f828a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,7 +40,7 @@ "dependencies": { "@dqbd/tiktoken": "^1.0.2", "@keyv/mongo": "^2.1.8", - "@waylaidwanderer/chatgpt-api": "^1.36.0", + "@waylaidwanderer/chatgpt-api": "^1.36.3", "axios": "^1.3.4", "bcryptjs": "^2.4.3", "cookie": "^0.5.0", @@ -7029,9 +7029,9 @@ } }, "node_modules/@waylaidwanderer/chatgpt-api": { - "version": "1.36.0", - "resolved": "https://registry.npmjs.org/@waylaidwanderer/chatgpt-api/-/chatgpt-api-1.36.0.tgz", - "integrity": "sha512-3QRNqLXT4ZhuH5Rd6siKR8E04SWFps7k8JqR2sniro4axFvPZEnBiEGhP97xGP9akYF3N8lMMTiNwJMsLSOeHg==", + "version": "1.36.3", + "resolved": "https://registry.npmjs.org/@waylaidwanderer/chatgpt-api/-/chatgpt-api-1.36.3.tgz", + "integrity": "sha512-98tHhxbX3p3TM9i+zHi3d1sjwwujRiCg5+cEUpBHeosQMLIe9nvkKL4lE7U5YSCuLOrwB8IlSP+dAxRQi0H1qg==", "dependencies": { "@dqbd/tiktoken": "^1.0.2", "@fastify/cors": "^8.2.0",