Releases: transcentlin/Copilot-API
Releases · transcentlin/Copilot-API
Release list
v1.0.0
Release v1.0.0: Initial High-Quality Windows-Friendly Version
We are proud to release v1.0.0 of the Copilot-API!
This project bridges your personal Microsoft Copilot account to an OpenAI-compatible API and a Python library.
Compared to the original upstream repository, this release introduces several critical industrial-grade enhancements specifically designed for Windows environments, proxy networks, and robust automation.
🚀 Key Features & Enhancements (核心特性与独创增强)
- 🤖 Smart One-Click Startup (PowerShell): Added
.\start_service.ps1andverify_auth.py. It automatically diagnoses cookie validity, auto-launches a browser for re-login if expired, auto-kills any zombie processes holding port 8000, and starts the server with live logs. - 🔌 SOCKS5h Proxy Auto-Correction: Automatically converts
socks5h://tosocks5://in WebSocket headers, preventing the notoriousWinError 10061and TLS connection errors on proxy-enabled environments. - 🛡️ GBK Console Crash Immunity: Reconfigures standard I/O streams dynamically (
sys.stdout.reconfigure(errors="replace")) to preventUnicodeEncodeErrorwhen printing emoji characters in default Windows CMD/PowerShell consoles. - ⚡ 0-I/O In-Memory Optimization: Replaced repetitive disk scanning with a single glob scan and fast hash-map dictionary lookup, minimizing file I/O latency (especially in cloud sync folders).
- 🎭 Three Model Styles: Built-in support for
copilot(Balanced),copilot-creative(Creative), andcopilot-precise(Precise). - 📖 Bilingual Documentation: Fully localized and high-quality documentation in both English (
README.md) and Simplified Chinese (README_ZH.md).
📦 Installation (快速安装)
git clone https://github.com/transcentlin/Copilot-API.git
cd Copilot-API
python -m venv venv
# Activate venv, then:
pip install -r requirements.txt
playwright install chromium
python -m copilot loginFor Windows users, just run:
.\start_service.ps1Thanks to all contributors and users. Enjoy your free, OpenAI-compatible Copilot bridge!