3 Commits

Author SHA1 Message Date
Xin Wang
a4713456ad fix delete chat bug 2026-01-08 17:36:04 +08:00
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
b322ef1d7a Add comprehensive unit test suite
- Add 111 unit tests covering all client classes and exceptions
- Test BaseClientMixin: initialization, validation, retry logic
- Test FastGPTClient: HTTP requests, streaming, error handling, context manager
- Test ChatClient: all chat operations (completion, histories, records, feedback)
- Test AppClient: app analytics and logs
- Test all exception classes with various configurations
- Add shared pytest fixtures in conftest.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 16:17:43 +08:00