This project is a Qwen-to-OpenAI API proxy server that allows users to interact with Qwen's API using OpenAI-compatible endpoints. Key features include:
- Multi-account support with automatic rotation to handle request quotas
- QR code authentication flow
- Streaming response support
- Token counting and management
- Detailed debug logging capabilities
- All new features should be documented in the
docs/folder with dedicated markdown files - Update existing documentation when modifying existing features
- Key user-facing changes should also be reflected in the main
README.md - Architecture and implementation details should be captured in
docs/codebase_analysis.md
- Maintain a high-level feature changelog in the commit messages
- For detailed technical changes, run these commands to analyze recent modifications:
# Current repository status
git status --porcelain
# Recent commits (last 10)
git log --oneline -10
# Detailed recent changes
git log --since="1 week ago" --pretty=format:"%h - %an, %ar : %s" --stat
# Recently changed files
git diff HEAD~5 --name-only | head -20
# New files added
git diff --name-status HEAD~10 | grep "^A" | head -15
# Deleted files
git diff --name-status HEAD~10 | grep "^D" | head -10
# Modified core files
git diff --name-status HEAD~10 | grep "^M" | grep -E "(package\.json|README|config|main|index|app)" | head -10- Documentation is generally well-maintained with dedicated files for major features
- Recent development has focused on multi-account management and streaming improvements
- The project has a good test suite with both simple and complex test scripts
- Configuration is handled through environment variables with example configurations provided
- Authentication has been enhanced with QR code support and account management commands
src/- Main source code for the proxy serverdocs/- Detailed documentation for featuresauthenticate.js- CLI tool for account managementsrc/qwen/- Qwen-specific API and authentication logicsrc/utils/- Utility functions like logging and token counting