Xin Wang
|
fab0d39a35
|
Add async client support
- Add AsyncFastGPTClient, AsyncChatClient, AsyncAppClient classes
- Implement async/await patterns with httpx.AsyncClient
- Add async context manager support (async with, async for)
- Add async retry logic with exponential backoff
- Add 29 async unit tests covering all async client methods
- Update __init__.py to export async clients
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-06 16:36:13 +08:00 |
|
Xin Wang
|
0495dd4676
|
Initial commit: FastGPT Python SDK Phase 1
Implement core infrastructure:
- BaseClientMixin with retry logic and validation
- FastGPTClient base class with httpx
- ChatClient with 11 chat operation methods
- AppClient for analytics and logs
- Custom exceptions (APIError, AuthenticationError, etc.)
- Package configuration (pyproject.toml, setup.py)
- Documentation (README.md, CLAUDE.md)
- Basic usage examples
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-06 14:39:33 +08:00 |
|