chore(api): update chatgpt-api package version to 1.36.3 (#404)

docs(api): update BINGAI_TOKEN instructions in .env.example
docs(client): update BINGAI_TOKEN instructions in SetTokenDialog component
This commit is contained in:
Danny Avila 2023-05-29 11:00:51 -04:00 committed by GitHub
parent 6a34978e98
commit 2f59c82bec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 11 deletions

View file

@ -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"

View file

@ -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",

View file

@ -43,16 +43,18 @@ const SetTokenDialog = ({ open, onOpenChange, endpoint }) => {
const helpText = {
bingAI: (
<small className="break-all text-gray-600">
{`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 `}
<a
target="_blank"
href="https://github.com/waylaidwanderer/node-chatgpt-api/issues/378#issuecomment-1559868368"
rel="noreferrer"
className="text-blue-600 underline"
>
comment here
instructions
</a>
{` to provide the full cookie strings.`}
</small>
),
chatGPTBrowser: (

8
package-lock.json generated
View file

@ -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",