From 3842ff36eb35a78c0a82ac2b7e19e503fc31b926 Mon Sep 17 00:00:00 2001 From: Ihsan Devs Date: Fri, 24 Mar 2023 21:07:48 +0700 Subject: [PATCH] Create README.md --- README.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a1c9471 --- /dev/null +++ b/README.md @@ -0,0 +1,47 @@ +![EdgeGPT](https://socialify.git.ci/IhsanDevs/EdgeGPT/image?description=1&font=Inter&forks=1&issues=1&language=1&logo=https%3A%2F%2Fimg.icons8.com%2Fnolan%2F512%2Fchatgpt.png&name=1&owner=1&pattern=Circuit%20Board&pulls=1&stargazers=1&theme=Light) + +# Edge-GPT: Bing AI Chatbot WebSocket API Wrapper for PHP + +The ihsandevs/edge-gpt library is a powerful and easy-to-use PHP wrapper for the Bing AI Chatbot, leveraging the WebSocket API. Seamlessly integrate the advanced conversational capabilities of Bing's AI Chatbot into your PHP projects and create engaging user experiences with ease. + +## Requirements + +- python 3.8+ +- A Microsoft Account with early access to (Required) + +## Getting authentication (Required) + +- Install the cookie editor extension for [Chrome](https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/cookie-editor/) +- Go to `bing.com` +- Open the extension +- Click "Export" on the bottom right (This saves your cookies to clipboard) +- Paste your cookies into a file `cookies.json` + +## Installation + +To use this library, you can use Composer to install it. Run the following command: + +```bash +composer require ihsandevs/php-edge-gpt +``` + +## Usage + +```php +ask('Buatkan kode php untuk menampilkan "Hello Ihsan Devs" pada terminal.', 'PRECISE'); + +echo $response->answer(); +``` + +## License + +[MIT](https://choosealicense.com/licenses/mit/)