Skip to content
/ EdgeGPT Public
forked from IhsanDevs/EdgeGPT

Bing AI Chatbot WebSocket API Wrapper for PHP

License

Notifications You must be signed in to change notification settings

chumoe/EdgeGPT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EdgeGPT

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

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 chumoe/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

MIT

About

Bing AI Chatbot WebSocket API Wrapper for PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%