sydney.py  by vsakkas

Python client for Copilot (formerly Bing Chat)

created 2 years ago
297 stars

Top 90.4% on sourcepulse

GitHubView on GitHub
Project Summary

This Python library provides an unofficial client for Microsoft's Copilot (formerly Bing Chat), enabling developers to integrate AI-powered conversational capabilities into their applications. It supports various conversation styles, content composition, real-time token streaming, and prompt enhancement with images, targeting developers who need to leverage advanced AI features.

How It Works

The client interacts with Copilot via its API, utilizing asyncio for efficient, non-blocking I/O. Authentication is handled through cookies extracted from the Copilot web interface, which are set as an environment variable. The library abstracts the complexities of API calls, allowing users to send prompts, stream responses, manage conversation history, and utilize different personas and conversation styles.

Quick Start & Requirements

  • Install via pip: pip install sydney-py
  • Requires Python 3.9+
  • Microsoft account with Copilot access recommended.
  • Authentication requires extracting cookies from the Copilot web page (detailed instructions provided).
  • Official documentation: https://github.com/vsakkas/sydney.py#readme

Highlighted Details

  • Supports streaming responses for real-time interaction.
  • Allows prompt enhancement with image attachments.
  • Offers customizable personas (e.g., travel, cooking) and conversation styles (creative, balanced, precise).
  • Can compose content in various formats (email, blog post) and tones.
  • Retrieves citations and suggested user responses.

Maintenance & Community

  • The project is actively maintained.
  • No specific community links (Discord/Slack) are provided in the README.

Licensing & Compatibility

  • Licensed under the MIT License.
  • Permissive for commercial use and integration with closed-source projects.

Limitations & Caveats

This is an unofficial client, meaning it may break if Microsoft changes its Copilot API. Authentication relies on cookies, which may require frequent updates or troubleshooting, particularly with CAPTCHA challenges. Web search is disabled by default for streamed responses.

Health Check
Last commit

6 months ago

Responsiveness

1 day

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

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), and
1 more.

chathub by chathub-dev

0.1%
10k
All-in-one chatbot client
created 2 years ago
updated 4 months ago
Feedback? Help us improve.