bing-chat  by transitive-bullshit

Node.js client for Bing Chat API

created 2 years ago
1,215 stars

Top 33.0% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This Node.js package provides an unofficial client for Microsoft's Bing Chat, offering a powerful AI conversational experience similar to ChatGPT but with enhanced capabilities. It is designed for developers and researchers interested in integrating Bing Chat's AI into their applications or exploring its functionalities.

How It Works

The client acts as a reverse-engineered wrapper around the Bing Chat API. It leverages Node.js and requires a valid Bing Chat cookie (_U cookie) for authentication. The library supports asynchronous message sending, conversation history management, and real-time streaming of responses via an onProgress handler, allowing for dynamic UI updates. Users can also select different AI variants like "Balanced," "Precise," or "Creative."

Quick Start & Requirements

  • Install via npm: npm install bing-chat
  • Requires Node.js version 18 or higher.
  • Requires a valid Bing Chat cookie (_U).

Highlighted Details

  • Unofficial Node.js client for Bing Chat.
  • Supports conversation history and streaming responses.
  • Allows selection of AI variants (Balanced, Precise, Creative).
  • ESM-only package.

Maintenance & Community

  • Developed by Travis Fischer.
  • Community Discord server available for hackers building on LLMs.
  • Author active on Twitter (@transitive_bs).

Licensing & Compatibility

  • MIT License.
  • Compatible with Node.js >= 18.
  • ESM-only. Recommended for backend API use in web applications.

Limitations & Caveats

This package is a reverse-engineered hack and is not intended for production use, with no guarantee of long-term functionality. Bing Chat conversations expire after approximately 20 minutes.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
3 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.