ihsandevs/php-edge-gpt
最新稳定版本:1.0.0
Composer 安装命令:
composer require ihsandevs/php-edge-gpt
包简介
Bing AI Chatbot WebSocket API Wrapper for PHP
README 文档
README
This project has been discontinued and can no longer be used. Because Bing security will always be updated regularly, of course. But not with this project, the time factor and bypass some of Bing's increasingly updated security.
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.
Demo
0324.mp4
Requirements
- A Microsoft Account with early access to https://bing.com/chat (Required)
Getting authentication (Required)
- Install the cookie editor extension for Chrome or Firefox
- 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:
composer require ihsandevs/php-edge-gpt
Usage
<?php require(__DIR__ . '/vendor/autoload.php'); use Ihsandevs\EdgeGpt\Chatbot; $bot = new Chatbot(__DIR__ . '/cookies.json'); // You can use the following conversation styles: CREATIVE, BALANCED, PRECISE. Or you can keep it empty. $response = $bot->ask('Buatkan kode php untuk menampilkan "Hello Ihsan Devs" pada terminal.', 'PRECISE'); echo $response->answer();
License
统计信息
- 总下载量: 253
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-24