Commit Graph

4 Commits

Author SHA1 Message Date
Xin Wang
a55ca37c39 feat: enhance chat CLI and TUI with initial opener handling and improved prompt logic 2026-03-10 23:55:53 +08:00
Xin Wang
ef2614a70a feat: add chat_tui example for FastGPT with Textual interface
- Introduced a new example script `chat_tui.py` that provides a full-screen Textual interface for interacting with FastGPT.
- Implemented streaming chat updates, workflow logging, and modal handling for interactive nodes.
- Enhanced FastGPT client with new streaming capabilities and structured event types for better interaction handling.
- Normalized base URL handling in the client to prevent duplicate `/api` paths.
- Added tests for streaming event parsing and interaction handling.
2026-03-10 15:34:27 +08:00
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