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 # 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 # To get your Access token for Bing, login to https://www.bing.com
# logged into the site to view it in your network request Cookie header value. For full instructions, see my comment here: # Use dev tools or an extension while logged into the site to copy the content of the _U cookie.
# https://github.com/waylaidwanderer/node-chatgpt-api/issues/378#issuecomment-1559868368 #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. # Set to "user_provided" to allow the user to provide its token from the UI.
# Leave it blank to disable this endpoint. # Leave it blank to disable this endpoint.
BINGAI_TOKEN="user_provided" BINGAI_TOKEN="user_provided"

View file

@ -21,7 +21,7 @@
"dependencies": { "dependencies": {
"@dqbd/tiktoken": "^1.0.2", "@dqbd/tiktoken": "^1.0.2",
"@keyv/mongo": "^2.1.8", "@keyv/mongo": "^2.1.8",
"@waylaidwanderer/chatgpt-api": "^1.36.0", "@waylaidwanderer/chatgpt-api": "^1.36.3",
"axios": "^1.3.4", "axios": "^1.3.4",
"bcryptjs": "^2.4.3", "bcryptjs": "^2.4.3",
"cookie": "^0.5.0", "cookie": "^0.5.0",

View file

@ -43,16 +43,18 @@ const SetTokenDialog = ({ open, onOpenChange, endpoint }) => {
const helpText = { const helpText = {
bingAI: ( bingAI: (
<small className="break-all text-gray-600"> <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 {`To get your Access token for Bing, login to https://www.bing.com.
logged into the site to view it in your network request Cookie header value. For full instructions, see my `} 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 <a
target="_blank" target="_blank"
href="https://github.com/waylaidwanderer/node-chatgpt-api/issues/378#issuecomment-1559868368" href="https://github.com/waylaidwanderer/node-chatgpt-api/issues/378#issuecomment-1559868368"
rel="noreferrer" rel="noreferrer"
className="text-blue-600 underline" className="text-blue-600 underline"
> >
comment here instructions
</a> </a>
{` to provide the full cookie strings.`}
</small> </small>
), ),
chatGPTBrowser: ( chatGPTBrowser: (

8
package-lock.json generated
View file

@ -40,7 +40,7 @@
"dependencies": { "dependencies": {
"@dqbd/tiktoken": "^1.0.2", "@dqbd/tiktoken": "^1.0.2",
"@keyv/mongo": "^2.1.8", "@keyv/mongo": "^2.1.8",
"@waylaidwanderer/chatgpt-api": "^1.36.0", "@waylaidwanderer/chatgpt-api": "^1.36.3",
"axios": "^1.3.4", "axios": "^1.3.4",
"bcryptjs": "^2.4.3", "bcryptjs": "^2.4.3",
"cookie": "^0.5.0", "cookie": "^0.5.0",
@ -7029,9 +7029,9 @@
} }
}, },
"node_modules/@waylaidwanderer/chatgpt-api": { "node_modules/@waylaidwanderer/chatgpt-api": {
"version": "1.36.0", "version": "1.36.3",
"resolved": "https://registry.npmjs.org/@waylaidwanderer/chatgpt-api/-/chatgpt-api-1.36.0.tgz", "resolved": "https://registry.npmjs.org/@waylaidwanderer/chatgpt-api/-/chatgpt-api-1.36.3.tgz",
"integrity": "sha512-3QRNqLXT4ZhuH5Rd6siKR8E04SWFps7k8JqR2sniro4axFvPZEnBiEGhP97xGP9akYF3N8lMMTiNwJMsLSOeHg==", "integrity": "sha512-98tHhxbX3p3TM9i+zHi3d1sjwwujRiCg5+cEUpBHeosQMLIe9nvkKL4lE7U5YSCuLOrwB8IlSP+dAxRQi0H1qg==",
"dependencies": { "dependencies": {
"@dqbd/tiktoken": "^1.0.2", "@dqbd/tiktoken": "^1.0.2",
"@fastify/cors": "^8.2.0", "@fastify/cors": "^8.2.0",