Python client for Copilot (formerly Bing Chat)
Top 90.4% on sourcepulse
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
pip install sydney-py
Highlighted Details
Maintenance & Community
Licensing & Compatibility
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.
6 months ago
1 day