feat: conversation-based chat system with anonymous support #65
Reference in New Issue
Block a user
Delete Branch "fix/issue-59"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Acceptance Criteria
Files Changed
- Add Conversation model with user/anonymous_token/bot_id fields - Add Message model linked to conversations - Add AnonymousUser model for tracking anonymous chat limits - Create /api/conversations endpoints (list, create, get, delete) - Add POST /api/conversations/{id}/chat for messaging - Add POST /api/conversations/{id}/set-bot for linking bot - Implement rate limiter with system-wide (500/5hrs) and anonymous limits - Anonymous users: max 50 chats, max 1 bot, max 1 backtest - Add warning after 40 anonymous messages - Register conversations router in main.py - Add create_bot, list_bots, set_bot, get_bot_info tools to registrylgtm