Skip to content

Commit

Permalink
Add octoai (#2)
Browse files Browse the repository at this point in the history
* Add healthCheck endpoint

* bob-setting (#1)

* Bob settings with compressing (#2)

* bob-setting

* Bob with compressing story

* Remove not needed logs

* Fix

* Little tweaks

* Decrease max tokens from 500 to 380

* Increased randomness

* remove summarization of text

* Revert back randomness setting

* Improve logs

* Change default settings

* Switch to using gpt-3.5-turbo-16k

* Shorten query, do not pass all unnecesary data if not needed

* Make keyv store everything in redis (#3)

* Make keyv store everything in redis

* Extend redis keeping data for 30min

* Tweak parameters

* Make temperature lower

* Add id to chunk

* Increase max output token to 540

* Use fine tuned model (UPDATE TO LATEST) (#5)

* fix(client): optimize token counting algorithm

* fix(demos): update client demo

* 1.25.7

* feat: add proxy option to ChatGPT clients and 'Generate title' request to browser client (#146)

* Add proxy option and 'Generate title' request

* Remove unnecessary try-catch blocks

* Remove unnecessary try-catch blocks in genTitle.

* fix(client): merge import

* fix: add support for reverseProxyUrl

---------

Co-authored-by: Lex Lim <hyperzlib@outlook.com>
Co-authored-by: Joel <jcz@hey.com>

* fix(client): set default model to gpt-3.5-turbo

* docs: update readme and example settings

* 1.26.0

* build(deps): explicitly add undici to package.json

* 1.26.1

* docs(readme): note that Bing AI is no longer GPT-4

* build(deps): bump fastify from 4.14.0 to 4.14.1 (#169)

Bumps [fastify](https://github.com/fastify/fastify) from 4.14.0 to 4.14.1.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.14.0...v4.14.1)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs(readme): update note on Bing AI

* docs(readme): update note on Bing AI again

* feat: Bing jailbreak (#132)

* feat: jailbreak wip

* fix: simplify code for cleaning up websockets

* feat: additional jailbreaking logic

* fix: jailbreak prompt tweaks

* fix: update jailbreak instructions

* fix: update Human label to match chat log format

* fix: jailbreak tweaks

* fix: handle unknown errors when creating conversations

* fix: handle moderation filter better

* fix: don't use variable before declaration

* fix: better prompt injection

* chore: add todo notes

* fix: invocationId usage

* fix: ignore part of message if AI starts responding as user

* fix: update cli to work with Bing jailbreak

* fix: store messages by jailbreakConversationId

* fix: allow chatting to Bing normally still

* fix(api): update to pass jailbreakConversationId to sendMessage

* fix: set jailbreakConversationId to false by default to prevent undefined property in response

* docs: add documentation for jailbreak

* 1.27.0

* docs(readme): add a projects section

* feat: per-message client options (#173)

* feat(client): allow setting per-message client options

* feat(browser-client): allow setting per-message client options

* feat(bing): allow setting per-message client options

* feat: configurable whitelist for per-message client option properties

* fix: override options properly

* feat: implement ability to swap clients per message

* docs: explain perMessageClientOptionsWhitelist

* fix: make it more clear that openaiApiKey can be set per-message

* fix: create new client for every message to avoid option pollution

* chore: add eslint to project

* chore: fix eslint errors

* 1.28.0

* chore: update test command

* chore: use actions/setup-node

* docs: clarify readme

* docs: update documentation for conversation endpoint

* fix(server): jailbreak conversation cache fix (#175)

* fix(server): jailbreak conversation cache fix

* fix: apply suggestions from code review

---------

Co-authored-by: Joel <waylaidwanderer@live.com>

* 1.28.1

* fix(server): don't always cast jailbreakConversationId to string

* 1.28.2

* fix: update reverse proxy server endpoint

* 1.28.3

* docs: add KeyvFile import to demos to reduce confusion

* chore: lint errors

* fix(server): switch clients properly when whitelist exists

* 1.28.4

* fix(bing): fix moderation filter check for Bing update

* 1.28.5

* fix(bing): only use moderation filter workaround in jailbreak mode

* 1.28.6

* build(deps): bump ws from 8.12.1 to 8.13.0 (#179)

Bumps [ws](https://github.com/websockets/ws) from 8.12.1 to 8.13.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.12.1...8.13.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): don't store any keyv data if not in jailbreak mode

* 1.28.7

* fix(client): merge nested options properly

* 1.28.8

* docs(readme): update link for my web client

* 1.28.9

* feat(readme): Add my webapp client program in project list. (#182)

* fix: also include parentMessageId in responses if available

* 1.28.10

* feat(client): add the ablity to generate titles for conversations (#183)

* feat: add function to generate title

* feat(server): implement option for generating titles

* docs(readme): update example settings

* 1.29.0

* fix: allow single quotes in title

* 1.29.1

* docs(readme): add halbot (#184)

* Update README.md

* Update README.md

---------

Co-authored-by: Joel <waylaidwanderer@live.com>

* fix(client): only set Authorization header if apiKey is set

* 1.29.2

* build(deps-dev): bump eslint from 8.35.0 to 8.36.0 (#185)

Bumps [eslint](https://github.com/eslint/eslint) from 8.35.0 to 8.36.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.35.0...v8.36.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump undici from 5.20.0 to 5.21.0 (#186)

Bumps [undici](https://github.com/nodejs/undici) from 5.20.0 to 5.21.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.20.0...v5.21.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @fastify/cors from 8.2.0 to 8.2.1 (#188)

Bumps [@fastify/cors](https://github.com/fastify/fastify-cors) from 8.2.0 to 8.2.1.
- [Release notes](https://github.com/fastify/fastify-cors/releases)
- [Commits](https://github.com/fastify/fastify-cors/compare/v8.2.0...v8.2.1)

---
updated-dependencies:
- dependency-name: "@fastify/cors"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: add support for gpt-4

* 1.30.0

* chore(bing): update headers

* 1.30.1

* feat(bing): jailbreak redux (#204)

* feat(bing): update jailbreak

* fix: throw an error when WS error occurs

* 1.31.0

* build(deps): bump @dqbd/tiktoken from 0.4.0 to 1.0.2 (#200)

Bumps [@dqbd/tiktoken](https://github.com/dqbd/tiktoken) from 0.4.0 to 1.0.2.
- [Release notes](https://github.com/dqbd/tiktoken/releases)
- [Changelog](https://github.com/dqbd/tiktoken/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dqbd/tiktoken/commits)

---
updated-dependencies:
- dependency-name: "@dqbd/tiktoken"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): log response body if creating conversation fails due to invalid json

* 1.31.1

* fix(bing): improve error handling (#198)

* improve error handling of BingAIClient

we can now know if userToken of bing.com is expired

* improve error handling of server.js

1. we can now know if userToken of bing.com is expired
2. use standard Error.message

* Update BingAIClient.js

space or tab after '//' in comment

* fix(bing): handle type 7 events which are errors that close the connection

* 1.31.2

* fix(server): pass toneStyle to client

* 1.31.3

* fix(client): minor fixes to handle certain reverse proxy responses better

* 1.31.4

* fix(bing): update referer header

* 1.31.5

* feat(bing): add systemMessage (#199)

* Test adding systemMessage and aiName

* Make ESLint happy

* aiName no longer needed, fix code post-merge

* Add botMessage, fix ESLint

* Update BingAIClient.js

* Final touchup

* Do some stuff to make PR ready

* 1.31.6

* build(deps): bump ora from 6.1.2 to 6.2.0 (#218)

Bumps [ora](https://github.com/sindresorhus/ora) from 6.1.2 to 6.2.0.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v6.1.2...v6.2.0)

---
updated-dependencies:
- dependency-name: ora
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump inquirer from 9.1.4 to 9.1.5 (#219)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.1.4 to 9.1.5.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.1.4...inquirer@9.1.5)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump fastify from 4.14.1 to 4.15.0 (#220)

Bumps [fastify](https://github.com/fastify/fastify) from 4.14.1 to 4.15.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.14.1...v4.15.0)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(bing): add support for context message (+ demo) and fast "Balanced" mode (#216)

* Test adding systemMessage and aiName

* Make ESLint happy

* aiName no longer needed, fix code post-merge

* Add botMessage, fix ESLint

* Update BingAIClient.js

* Final touchup

* Do some stuff to make PR ready

* Add support for context (+ demo) and fast balanced mode

* feat(bing): fix eslint errors

---------

Co-authored-by: Eris <erisfiregamer1@gmail.com>

* feat(bing): re-enable support for system messages (#214)

* feat(bing): Re-enable support for system messages

* fix: minor tweaks

---------

Co-authored-by: Joel <jcz@hey.com>

* 1.32.0

* fix(bing): abort request instead of throwing on ws error

* 1.32.1

* fix(server): allow shouldGenerateTitle to be overridden by request

* 1.32.2

* fix(bing): add "Answer using the same language as the user" to jailbreak prompt (#229)

Co-authored-by: Vladimir Alabov <vladimir.alabov@bsc-ideas.com>

* 1.32.3

* fix(bing): tone done Sydney jailbreak a little bit...

* 1.32.4

* fix(bing): another sydney jailbreak tweak

* 1.32.5

* fix(bing): go back to sending user message normally as it works fine with current system jailbreak

* 1.32.6

* fix(bing): workaround for request being blocked due to geolocation, closes #230

* 1.32.7

* chore(chatgpt-browser): update bypass url

* 1.32.8

* build(deps): bump ora from 6.2.0 to 6.3.0 (#237)

Bumps [ora](https://github.com/sindresorhus/ora) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v6.2.0...v6.3.0)

---
updated-dependencies:
- dependency-name: ora
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): check if IP is blocked by Bing (#244)

* Update BingAIClient.js: check if IP is blocked by BingAI

When IP is blocked by BingAI, user will receive HTTP code 200 with wrong content-length header ( 0 or 1 in my case )
https://twitter.com/likev/status/1625866805653954560

* fix code space format

* 1.32.9

* fix(bing): catch error events on WebSocket connection (#240)

* Catch error events on WebSocket connection

Event handler on WebSocket for 'error' event needs to be set up a bit earlier.

node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: Unexpected server response: 503
    at ClientRequest.<anonymous> (/node-chatgpt-api/node_modules/ws/lib/websocket.js:888:7)
    at ClientRequest.emit (node:events:390:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:623:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at TLSSocket.socketOnData (node:_http_client:487:22)
    at TLSSocket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:199:23)
Emitted 'error' event on WebSocket instance at:
    at emitErrorAndClose (/node-chatgpt-api/node_modules/ws/lib/websocket.js:1008:13)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

* Update BingAIClient.js

* 1.32.10

* docs(readme): add ChatGPTBox to Projects (#243)

* fix(bing): check if eventMessage is null before setting properties (#247)

Encountered this at low probability.

* fix(client): remove unnecessary name property from messagePayload

* feat(bing): put the conversation in "document summary" context (#246)

* 1.33.0

* docs: update issue templates

* fix(bing): fix jailbreak mode context input & fix repeating introduction (#256)

* fix(bing): try to fix https://github.com/waylaidwanderer/node-chatgpt-api/issues/248

* fix(bing): fix jailbreak mode context input

* chore(bing): add some comments

---------

Co-authored-by: Joel <jcz@hey.com>

* 1.33.1

* build(deps-dev): bump eslint from 8.36.0 to 8.37.0 (#258)

Bumps [eslint](https://github.com/eslint/eslint) from 8.36.0 to 8.37.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.36.0...v8.37.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): change messageType value based on jailbreakConversationId value

* 1.33.2

* fix(use-browser-client.js): update reverseProxyUrl to new endpoint on bypass.churchless.tech domain (#269)

* fix(bing): try to fix everything caused by "current user message in document context" (#264)

* fix(bing): use another method to bypass moderation of the current message

* fix(bing): fix summarize new document

* 1.33.3

* build(deps-dev): bump @keyv/redis from 2.5.6 to 2.5.7 (#272)

Bumps [@keyv/redis](https://github.com/jaredwray/keyv) from 2.5.6 to 2.5.7.
- [Release notes](https://github.com/jaredwray/keyv/releases)
- [Commits](https://github.com/jaredwray/keyv/commits)

---
updated-dependencies:
- dependency-name: "@keyv/redis"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): use empty string for real user message in jailbreak mode (#277)

* fix strange behavior in jailbreak mode

* fix: lint error

---------

Co-authored-by: Joel <waylaidwanderer@live.com>

* 1.33.4

* build(deps): bump @dqbd/tiktoken from 1.0.2 to 1.0.3 (#279)

Bumps [@dqbd/tiktoken](https://github.com/dqbd/tiktoken) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/dqbd/tiktoken/releases)
- [Changelog](https://github.com/dqbd/tiktoken/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dqbd/tiktoken/commits/1.0.3)

---
updated-dependencies:
- dependency-name: "@dqbd/tiktoken"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(chatgpt-browser): make genTitle method async and add to response object as promise (#280)

* 1.34.0

* build(deps): bump @dqbd/tiktoken from 1.0.3 to 1.0.4 (#300)

Bumps [@dqbd/tiktoken](https://github.com/dqbd/tiktoken) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dqbd/tiktoken/releases)
- [Changelog](https://github.com/dqbd/tiktoken/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dqbd/tiktoken/commits)

---
updated-dependencies:
- dependency-name: "@dqbd/tiktoken"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump undici from 5.21.0 to 5.21.2 (#299)

Bumps [undici](https://github.com/nodejs/undici) from 5.21.0 to 5.21.2.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.21.0...v5.21.2)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump eslint from 8.37.0 to 8.38.0 (#298)

Bumps [eslint](https://github.com/eslint/eslint) from 8.37.0 to 8.38.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.37.0...v8.38.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(ChatGPTBrowserClient): add optional onEventMessage parameter to postConversation method to handle event messages from the server. (#297)

* 1.35.0

* build(deps): bump @dqbd/tiktoken from 1.0.4 to 1.0.6 (#304)

Bumps [@dqbd/tiktoken](https://github.com/dqbd/tiktoken) from 1.0.4 to 1.0.6.
- [Release notes](https://github.com/dqbd/tiktoken/releases)
- [Changelog](https://github.com/dqbd/tiktoken/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dqbd/tiktoken/commits/1.0.6)

---
updated-dependencies:
- dependency-name: "@dqbd/tiktoken"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: nodemon + inspect port for server & cli (#291)

* build(deps): bump undici from 5.21.2 to 5.22.0 (#320)

Bumps [undici](https://github.com/nodejs/undici) from 5.21.2 to 5.22.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.21.2...v5.22.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump eslint from 8.38.0 to 8.39.0 (#323)

Bumps [eslint](https://github.com/eslint/eslint) from 8.38.0 to 8.39.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.38.0...v8.39.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(bing): take a Keyv object instead of options (#317)

* Just take a Keyv object, don't go through the old mess

* Update BingAIClient.js

* chore: lint errors

---------

Co-authored-by: Joel <jcz@hey.com>

* fix(server): allow passing systemMessage, context from request body (#319)

* docs(readme): add llm-bot (#325)

* Just take a Keyv object, don't go through the old mess

* Update BingAIClient.js

* chore: lint errors

* Update README.md

bruh

---------

Co-authored-by: Joel <jcz@hey.com>

* chore: publish docker image (#312)

* build(deps): bump inquirer from 9.1.5 to 9.2.0 (#329)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.1.5 to 9.2.0.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.1.5...inquirer@9.2.0)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump fastify from 4.15.0 to 4.16.3 (#331)

Bumps [fastify](https://github.com/fastify/fastify) from 4.15.0 to 4.16.3.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.15.0...4.16.3)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump fastify from 4.16.3 to 4.17.0 (#334)

Bumps [fastify](https://github.com/fastify/fastify) from 4.16.3 to 4.17.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/4.16.3...4.17.0)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @dqbd/tiktoken from 1.0.6 to 1.0.7 (#337)

Bumps [@dqbd/tiktoken](https://github.com/dqbd/tiktoken) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/dqbd/tiktoken/releases)
- [Changelog](https://github.com/dqbd/tiktoken/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dqbd/tiktoken/commits)

---
updated-dependencies:
- dependency-name: "@dqbd/tiktoken"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump inquirer from 9.2.0 to 9.2.1 (#346)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.2.0 to 9.2.1.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.2.0...inquirer@9.2.1)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump https-proxy-agent from 5.0.1 to 6.0.0 (#345)

Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 5.0.1 to 6.0.0.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/HEAD/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): properly instantiate HttpsProxyAgent (#352)

HttpsProxyAgent is not a constructor error

* build(deps-dev): bump eslint from 8.39.0 to 8.40.0 (#347)

Bumps [eslint](https://github.com/eslint/eslint) from 8.39.0 to 8.40.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.39.0...v8.40.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump inquirer from 9.2.1 to 9.2.3 (#368)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.2.1 to 9.2.3.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.2.1...inquirer@9.2.3)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump @keyv/redis from 2.5.7 to 2.5.8 (#358)

Bumps [@keyv/redis](https://github.com/jaredwray/keyv) from 2.5.7 to 2.5.8.
- [Release notes](https://github.com/jaredwray/keyv/releases)
- [Commits](https://github.com/jaredwray/keyv/commits)

---
updated-dependencies:
- dependency-name: "@keyv/redis"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump https-proxy-agent from 6.0.0 to 6.1.0 (#357)

Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@6.1.0/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump boxen from 7.0.2 to 7.1.0 (#356)

Bumps [boxen](https://github.com/sindresorhus/boxen) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/sindresorhus/boxen/releases)
- [Commits](https://github.com/sindresorhus/boxen/compare/v7.0.2...v7.1.0)

---
updated-dependencies:
- dependency-name: boxen
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump undici from 5.22.0 to 5.22.1 (#365)

Bumps [undici](https://github.com/nodejs/undici) from 5.22.0 to 5.22.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.22.0...v5.22.1)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): keeping repeating introduction due to empty message string + use a more native method to pass web page context (#350)

* fix

fix https://github.com/waylaidwanderer/node-chatgpt-api/issues/289

* fix "fast" mode web page context, more “native” to original Bing

* some small adjustments

* We still need this to avoid repeating introduction in some cases

* fix(bing): use replySoFar when Bing apologises (#360)

* feat(browser-client): deleteConversation function (#344)

* Add deleteConversation function

* Fix for ESlint

* Fix Event Stream

* feat(client): add support for Azure OpenAI API (#361)

* 1.36.0

* fix(bing): extend message timeout (#372)

Bing is able to output codes for almost 3 minutes before ending it's answer.

Having the 2 min timout prevent the user from being able to get any long answer from Bing/Sydney.

* build(deps): bump https-proxy-agent from 6.1.0 to 6.2.0 (#371)

Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@6.2.0/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump inquirer from 9.2.3 to 9.2.4 (#370)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.2.3 to 9.2.4.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.2.3...inquirer@9.2.4)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ora from 6.3.0 to 6.3.1 (#369)

Bumps [ora](https://github.com/sindresorhus/ora) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: ora
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump eslint from 8.40.0 to 8.41.0 (#374)

Bumps [eslint](https://github.com/eslint/eslint) from 8.40.0 to 8.41.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.40.0...v8.41.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump inquirer from 9.2.4 to 9.2.5 (#373)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.2.4 to 9.2.5.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.2.4...inquirer@9.2.5)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): allow user to not set any cookies at all

* 1.36.1

* 1.36.2

* build(deps): bump https-proxy-agent from 6.2.0 to 6.2.1 (#382)

Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@6.2.1/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): update some headers

* 1.36.3

* build(deps): bump @fastify/cors from 8.2.1 to 8.3.0 (#384)

Bumps [@fastify/cors](https://github.com/fastify/fastify-cors) from 8.2.1 to 8.3.0.
- [Release notes](https://github.com/fastify/fastify-cors/releases)
- [Commits](https://github.com/fastify/fastify-cors/compare/v8.2.1...v8.3.0)

---
updated-dependencies:
- dependency-name: "@fastify/cors"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump inquirer from 9.2.5 to 9.2.6 (#377)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.2.5 to 9.2.6.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.2.5...inquirer@9.2.6)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump https-proxy-agent from 6.2.1 to 7.0.0 (#383)

Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 6.2.1 to 7.0.0.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@7.0.0/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(client): add support for custom headers in options object (#380)

* feat(client): adding conversation overwrite, conversation return and keepNecessaryMessagesOnly features (#308)

* Update README.md

* Update README.md

* adding conversation overwrite, conversation return and keepNecessaryMessagesOnly feature

* fixed a bug in keepNecessaryMessagesOnly feature

* fixed a bug in keepNecessaryMessagesOnly feature, 2nd

* tweak keepNecessaryMessagesOnly api to reduce calling Keyv apis

* support changing system prompt on-the-fly, this will enable developer to share an api client to many people

* reformat to match the rule

* fixed: Error:   339:14  error  Missing trailing comma  comma-dangle

---------

Co-authored-by: Joel <waylaidwanderer@live.com>

* chore: rewrite dockerfile (#335)

* feat: rewrite the dockerfile to use node:16-alpine

* fix: wrong dockerfile

* build(deps): bump dotenv from 16.0.3 to 16.1.0 (#394)

Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.0.3 to 16.1.0.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.0.3...v16.1.0)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(BingAIClient.js): increase message timeout from 180 seconds to 300 seconds

* 1.36.4

* fix(client): update token counting algorithm for gpt-4

* feat(bing): add the image generation function (#381)

* import '@timefox/bic-sydney' module to enbale BingAIClient's image generation capability.

* adding options for setting 'x-forwarded-for' and whether to enable image generation for bingAiClient.

* make a slight optimization for bingAiClient's image generation function.

* fix eslint error  Trailing spaces not allowed  no-trailing-spaces.

* Fixed several issues pointed out by waylaidwanderer .

* Remove duplicate key 'cookie'.

* Fix eslint error  Trailing spaces not allowed  no-trailing-spaces.

* Use the try-catch-await pattern for waiting for the image generation and fixed the issue of option 'xForwardedFor'.

* Do a mirror optimization.

* Fixed the crash when bic throw an error.

---------

Co-authored-by: robin <skyfox@cloudendless.com>
Co-authored-by: timefox <savior.seed@gmail.com>

* 1.37.0

* build(deps): bump @timefox/bic-sydney from 1.1.2 to 1.1.3 (#397)

Bumps [@timefox/bic-sydney](https://github.com/timefox/node-bic-sydney) from 1.1.2 to 1.1.3.
- [Commits](https://github.com/timefox/node-bic-sydney/commits)

---
updated-dependencies:
- dependency-name: "@timefox/bic-sydney"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump dotenv from 16.1.0 to 16.1.3 (#398)

Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.1.0 to 16.1.3.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.1.0...v16.1.3)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(docker): fix host binding in container (#399)

Use prebuild image from ghcr and
match working directory in dockerfile

* docs(readme): add WhatsAppSydney to Projects (#410)

* build(deps): bump inquirer from 9.2.6 to 9.2.7 (#406)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.2.6 to 9.2.7.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.2.6...inquirer@9.2.7)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump @keyv/redis from 2.5.8 to 2.6.1 (#407)

Bumps [@keyv/redis](https://github.com/jaredwray/keyv) from 2.5.8 to 2.6.1.
- [Release notes](https://github.com/jaredwray/keyv/releases)
- [Commits](https://github.com/jaredwray/keyv/commits)

---
updated-dependencies:
- dependency-name: "@keyv/redis"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump dotenv from 16.1.3 to 16.1.4 (#408)

Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.1.3 to 16.1.4.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.1.3...v16.1.4)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump eslint from 8.41.0 to 8.42.0 (#409)

Bumps [eslint](https://github.com/eslint/eslint) from 8.41.0 to 8.42.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.41.0...v8.42.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump fastify from 4.17.0 to 4.18.0 (#413)

Bumps [fastify](https://github.com/fastify/fastify) from 4.17.0 to 4.18.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/4.17.0...v4.18.0)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): user message filter bypass (#405)

* build(deps): bump dotenv from 16.1.4 to 16.3.1 (#420)

Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.1.4 to 16.3.1.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.1.4...v16.3.1)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump eslint from 8.42.0 to 8.43.0 (#417)

Bumps [eslint](https://github.com/eslint/eslint) from 8.42.0 to 8.43.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.42.0...v8.43.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* hotfix(bing): remove IP ban check (no longer working) (#421)

* Emergency hotfix (Remove ban check, no longer working)

* refactor(bing): remove commented out code and unused variables

---------

Co-authored-by: Joel <jcz@hey.com>

* chore(package): update semver package to version 7.5.3

* 1.37.1

* build(deps-dev): bump nodemon from 2.0.22 to 3.0.1 (#431)

Bumps [nodemon](https://github.com/remy/nodemon) from 2.0.22 to 3.0.1.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v2.0.22...v3.0.1)

---
updated-dependencies:
- dependency-name: nodemon
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump boxen from 7.1.0 to 7.1.1 (#430)

Bumps [boxen](https://github.com/sindresorhus/boxen) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/sindresorhus/boxen/releases)
- [Commits](https://github.com/sindresorhus/boxen/compare/v7.1.0...v7.1.1)

---
updated-dependencies:
- dependency-name: boxen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump eslint from 8.43.0 to 8.44.0 (#428)

Bumps [eslint](https://github.com/eslint/eslint) from 8.43.0 to 8.44.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.43.0...v8.44.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump fastify from 4.18.0 to 4.19.2 (#427)

Bumps [fastify](https://github.com/fastify/fastify) from 4.18.0 to 4.19.2.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.18.0...v4.19.2)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump @keyv/redis from 2.6.1 to 2.7.0 (#426)

Bumps [@keyv/redis](https://github.com/jaredwray/keyv) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/jaredwray/keyv/releases)
- [Commits](https://github.com/jaredwray/keyv/commits)

---
updated-dependencies:
- dependency-name: "@keyv/redis"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump fastify from 4.19.2 to 4.20.0 (#436)

Bumps [fastify](https://github.com/fastify/fastify) from 4.19.2 to 4.20.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.19.2...v4.20.0)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump keyv from 4.5.2 to 4.5.3 (#435)

Bumps [keyv](https://github.com/jaredwray/keyv) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/jaredwray/keyv/releases)
- [Commits](https://github.com/jaredwray/keyv/commits)

---
updated-dependencies:
- dependency-name: keyv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump eslint from 8.44.0 to 8.45.0 (#434)

Bumps [eslint](https://github.com/eslint/eslint) from 8.44.0 to 8.45.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.44.0...v8.45.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump inquirer from 9.2.7 to 9.2.8 (#433)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.2.7 to 9.2.8.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.2.7...inquirer@9.2.8)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump https-proxy-agent from 7.0.0 to 7.0.1 (#432)

Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@7.0.1/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(bing): add headers to websocket connection, fixes #437 (#438)

Co-authored-by: hardyxu <hardyxu@tencent.com>

* fix(bing): filter out undefined values from headers object after assigning to this.headers

* 1.37.2

* build(deps): bump fastify from 4.20.0 to 4.21.0 (#441)

Bumps [fastify](https://github.com/fastify/fastify) from 4.20.0 to 4.21.0.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.20.0...v4.21.0)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ora from 6.3.1 to 7.0.1 (#448)

Bumps [ora](https://github.com/sindresorhus/ora) from 6.3.1 to 7.0.1.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v6.3.1...v7.0.1)

---
updated-dependencies:
- dependency-name: ora
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump inquirer from 9.2.8 to 9.2.10 (#449)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.2.8 to 9.2.10.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.2.8...inquirer@9.2.10)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump eslint-plugin-import from 2.27.5 to 2.28.1 (#454)

Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.27.5 to 2.28.1.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.27.5...v2.28.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump eslint from 8.45.0 to 8.48.0 (#458)

Bumps [eslint](https://github.com/eslint/eslint) from 8.45.0 to 8.48.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.45.0...v8.48.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs(readme): update associated project name (#455)

* fix(bing): increase timeout to prevent timeout error (#453)

* fix(bing): restore filter bypass (#457)

* 1.37.3

* build(deps): bump https-proxy-agent from 7.0.1 to 7.0.2 (#464)

Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/TooTallNate/proxy-agents/releases)
- [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md)
- [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@7.0.2/packages/https-proxy-agent)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump fastify from 4.21.0 to 4.22.2 (#463)

Bumps [fastify](https://github.com/fastify/fastify) from 4.21.0 to 4.22.2.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.21.0...v4.22.2)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump undici from 5.22.1 to 5.23.0 (#459)

Bumps [undici](https://github.com/nodejs/undici) from 5.22.1 to 5.23.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.22.1...v5.23.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(client): allow empty choices (#486)

Some Azure GPT Models seem to return unexpected empty choices array, when streaming, then proceed normaly

* build(deps-dev): bump eslint from 8.48.0 to 8.51.0 (#485)

Bumps [eslint](https://github.com/eslint/eslint) from 8.48.0 to 8.51.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.48.0...v8.51.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump undici from 5.23.0 to 5.25.4 (#483)

Bumps [undici](https://github.com/nodejs/undici) from 5.23.0 to 5.25.4.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/commits)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump ws from 8.13.0 to 8.14.2 (#477)

Bumps [ws](https://github.com/websockets/ws) from 8.13.0 to 8.14.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.13.0...8.14.2)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump fastify from 4.22.2 to 4.23.2 (#475)

Bumps [fastify](https://github.com/fastify/fastify) from 4.22.2 to 4.23.2.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](https://github.com/fastify/fastify/compare/v4.22.2...v4.23.2)

---
updated-dependencies:
- dependency-name: fastify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump inquirer from 9.2.10 to 9.2.11 (#472)

Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 9.2.10 to 9.2.11.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@9.2.10...inquirer@9.2.11)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update to fine tuned model

* Make it possible to choose model that is going to be used when sending request

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Joel <jcz@hey.com>
Co-authored-by: Lex Lim <mcleague@126.com>
Co-authored-by: Lex Lim <hyperzlib@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: AAA <35992542+TNTcraftHIM@users.noreply.github.com>
Co-authored-by: Joel <waylaidwanderer@live.com>
Co-authored-by: Aaron <walkthunder@163.com>
Co-authored-by: Sixia "Leask" Huang <i@leaskh.com>
Co-authored-by: xufanglu <3146974+likev@users.noreply.github.com>
Co-authored-by: Eris <erisfiregamer1@gmail.com>
Co-authored-by: Den <ekisde.xp@gmail.com>
Co-authored-by: InterestingDarkness <109194923+InterestingDarkness@users.noreply.github.com>
Co-authored-by: today- <today-@users.noreply.github.com>
Co-authored-by: Vladimir Alabov <vladimir.alabov@bsc-ideas.com>
Co-authored-by: ropoctl <ropoctl@gmail.com>
Co-authored-by: josc146 <josStorer@outlook.com>
Co-authored-by: Danny Avila <110412045+danny-avila@users.noreply.github.com>
Co-authored-by: notenough1111 <129916912+notenough1111@users.noreply.github.com>
Co-authored-by: syedahmedhaidershah <43408958+syedahmedhaidershah@users.noreply.github.com>
Co-authored-by: Argyropus <34572370+Argyropus@users.noreply.github.com>
Co-authored-by: BobMaster <bobmaster922@gmail.com>
Co-authored-by: zxh <57834769+zhouxinhao1208@users.noreply.github.com>
Co-authored-by: kq514550 <132342053+kq514550@users.noreply.github.com>
Co-authored-by: James Porter <33670244+Trinculo54@users.noreply.github.com>
Co-authored-by: Fuegovic <32828263+fuegovic@users.noreply.github.com>
Co-authored-by: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com>
Co-authored-by: timefox <airplayfox@gmail.com>
Co-authored-by: robin <skyfox@cloudendless.com>
Co-authored-by: timefox <savior.seed@gmail.com>
Co-authored-by: BobMaster <bobmaster@hibobmaster.com>
Co-authored-by: Luis Otavio Martins <luisotaviomgr1@gmail.com>
Co-authored-by: other-erisfg <137361662+other-erisfg@users.noreply.github.com>
Co-authored-by: xuxin3101 <xuxin3101@gmail.com>
Co-authored-by: hardyxu <hardyxu@tencent.com>
Co-authored-by: Marco Beretta <81851188+Berry-13@users.noreply.github.com>
Co-authored-by: Richard-Weiss <76665424+Richard-Weiss@users.noreply.github.com>
Co-authored-by: FritzTheBat <f.mehler@googlemail.com>
Co-authored-by: Dusan Stanisavljevic <dusanstanisavljevic@Dusans-MacBook-Pro.local>

* Fix shortening of transcript

* init

* Add streaming support

* Fix env var

* Fix streaming

* Fix octoAiLable

* Fix buildPromt

* Remove api key

* Lowerd top_p

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Joel <jcz@hey.com>
Co-authored-by: Lex Lim <mcleague@126.com>
Co-authored-by: Lex Lim <hyperzlib@outlook.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: AAA <35992542+TNTcraftHIM@users.noreply.github.com>
Co-authored-by: Joel <waylaidwanderer@live.com>
Co-authored-by: Aaron <walkthunder@163.com>
Co-authored-by: Sixia "Leask" Huang <i@leaskh.com>
Co-authored-by: xufanglu <3146974+likev@users.noreply.github.com>
Co-authored-by: Eris <erisfiregamer1@gmail.com>
Co-authored-by: Den <ekisde.xp@gmail.com>
Co-authored-by: InterestingDarkness <109194923+InterestingDarkness@users.noreply.github.com>
Co-authored-by: today- <today-@users.noreply.github.com>
Co-authored-by: Vladimir Alabov <vladimir.alabov@bsc-ideas.com>
Co-authored-by: ropoctl <ropoctl@gmail.com>
Co-authored-by: josc146 <josStorer@outlook.com>
Co-authored-by: Danny Avila <110412045+danny-avila@users.noreply.github.com>
Co-authored-by: notenough1111 <129916912+notenough1111@users.noreply.github.com>
Co-authored-by: syedahmedhaidershah <43408958+syedahmedhaidershah@users.noreply.github.com>
Co-authored-by: Argyropus <34572370+Argyropus@users.noreply.github.com>
Co-authored-by: BobMaster <bobmaster922@gmail.com>
Co-authored-by: zxh <57834769+zhouxinhao1208@users.noreply.github.com>
Co-authored-by: kq514550 <132342053+kq514550@users.noreply.github.com>
Co-authored-by: James Porter <33670244+Trinculo54@users.noreply.github.com>
Co-authored-by: Fuegovic <32828263+fuegovic@users.noreply.github.com>
Co-authored-by: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com>
Co-authored-by: timefox <airplayfox@gmail.com>
Co-authored-by: robin <skyfox@cloudendless.com>
Co-authored-by: timefox <savior.seed@gmail.com>
Co-authored-by: BobMaster <bobmaster@hibobmaster.com>
Co-authored-by: Luis Otavio Martins <luisotaviomgr1@gmail.com>
Co-authored-by: other-erisfg <137361662+other-erisfg@users.noreply.github.com>
Co-authored-by: xuxin3101 <xuxin3101@gmail.com>
Co-authored-by: hardyxu <hardyxu@tencent.com>
Co-authored-by: Marco Beretta <81851188+Berry-13@users.noreply.github.com>
Co-authored-by: Richard-Weiss <76665424+Richard-Weiss@users.noreply.github.com>
Co-authored-by: FritzTheBat <f.mehler@googlemail.com>
Co-authored-by: Dusan Stanisavljevic <dusanstanisavljevic@Dusans-MacBook-Pro.local>
  • Loading branch information
1 parent d0d358c commit 1f49850
Show file tree
Hide file tree
Showing 26 changed files with 11,685 additions and 1,754 deletions.
35 changes: 35 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
env: {
es2021: true,
node: true,
},
extends: 'airbnb-base',
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'indent': ['error', 4, { 'SwitchCase': 1 }],
'max-len': [
'error', {
'code': 150,
'ignoreStrings': true,
'ignoreTemplateLiterals': true,
'ignoreComments': true,
}],
'linebreak-style': 0,
'arrow-parens': [2, 'as-needed', { 'requireForBlockBody': true }],
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
'no-console': 'off',
'import/extensions': 'off',
'no-use-before-define': ['error', {
'functions': false,
}],
'no-promise-executor-return': 'off',
'no-param-reassign': 'off',
'no-continue': 'off',
'no-restricted-syntax': 'off',
},
};
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Node.js version (please complete the following information):**
- OS: [e.g. Windows, WSL2, Ubuntu]
- Version [e.g. 18]

**Package version (please complete the following information):**
- [e.g. 1.33.0]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/help-question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Help/Question
about: Ask for help with using this project
title: ''
labels: question
assignees: ''

---

DO NOT OPEN AN ISSUE IF YOU ARE ASKING FOR HELP. USE THE DISCUSSION FORUM INSTEAD.

General questions or help with code: https://github.com/waylaidwanderer/node-chatgpt-api/discussions/new?category=help

Other discussions: https://github.com/waylaidwanderer/node-chatgpt-api/discussions/new?category=discussions
51 changes: 51 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish Docker image

on:
workflow_dispatch:
release:
types: [published]

jobs:
push_to_registry:
name: Push Docker image to registry
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Docker metadata(ghcr)
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/node-chatgpt-api
tags: |
type=raw,value=latest
type=sha,format=long
- name: Build and push Docker image(ghcr)
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/index.js"
}
]
}
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
FROM alpine:latest

RUN apk add nodejs
RUN apk add npm

COPY ./ /var/chatgpt-api

WORKDIR /var/chatgpt-api
RUN npm ci --no-color --quiet
FROM node:16-alpine

ENV API_HOST=0.0.0.0
WORKDIR /app
COPY . .

RUN npm install
EXPOSE 3000

ENTRYPOINT npm start
CMD ["npm", "run", "start"]
Loading

0 comments on commit 1f49850

Please sign in to comment.