Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diogo-karma/bingchat-expressjs
Example of how to use BingChat with ExpressJS
https://github.com/diogo-karma/bingchat-expressjs
Last synced: about 1 month ago
JSON representation
Example of how to use BingChat with ExpressJS
- Host: GitHub
- URL: https://github.com/diogo-karma/bingchat-expressjs
- Owner: diogo-karma
- License: mit
- Created: 2023-10-11T00:36:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-11T10:22:54.000Z (over 1 year ago)
- Last Synced: 2024-11-25T05:42:41.815Z (about 2 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example of how to use BingChat with ExpressJS
Example for the issue https://github.com/transitive-bullshit/bing-chat/issues/55
## Usage
```bash
npm install
npm start #or npm run dev
```Make sure you're using `node >= 18` so `fetch` is available.
## Usage
**You need access to Bing Chat OR a valid cookie from someone who has access**.
The cookie you need from Bing is the `_U` cookie (or just all of the cookies concatenated together; both will work).
## Testing (http-local)
**Variant:** [Creative, Precise, Balanced] (opcional)
* http://localhost:3000/api?prompt=Create%20a%20poem%20about%20JavaScript%20loops&variant=Creative
* http://localhost:3000/api?prompt=Create%20a%20poem%20about%20JavaScript%20loops&variant=Precise
* http://localhost:3000/api?prompt=Create%20a%20poem%20about%20JavaScript%20loops&&variant=Balanced
# Thanks & Credit
[Rahul Nallappa](https://github.com/rnz269), [waylaidwanderer](https://github.com/waylaidwanderer), [canfam](https://github.com/canfam) for helping to reverse-engineer the API 💪 and [Travis Fischer](https://transitivebullsh.it)