17 Commits

Author SHA1 Message Date
70972ae372 cleaning docs 2025-11-07 14:48:01 -05:00
00035e1e63 cleaning docs 2025-11-07 14:46:54 -05:00
cb7c224288 screenshot 2025-11-07 14:04:36 -05:00
0a30833746 Use shared model endpoints for desktop and mobile
- Flutter now calls /models/list and /models/switch (desktop endpoints)
- Added get_optional_auth() helper that supports both desktop unlock and mobile JWT
- Removed duplicate mobile-only model endpoints
- Desktop client unchanged - still works with app_state unlock
2025-11-07 18:50:04 +00:00
b23ee41f2c Fix models directory path for Docker environment 2025-11-07 18:46:58 +00:00
7783d8dd81 Add validation to prevent empty server URL 2025-11-07 18:39:47 +00:00
a82b98870d Remove duplicate serverUrl getter and fix gitignore
- Removed duplicate serverUrl getter at line 310
- Fixed .gitignore to only ignore Python lib/ not Flutter lib/
- Build should now work
2025-11-07 18:29:18 +00:00
3ba50748c5 Fix models list to return proper format with name and size
- Backend now returns models as list of dicts with name, size, filename
- Fixed current_model to be a dict instead of string
- Added file size calculation and formatting
- Server URL persistence now works correctly in Flutter app
2025-11-07 18:26:12 +00:00
c74753b936 Fix server URL not being saved and loaded
- Initialize ApiClient in main() to load saved server URL from storage
- Add serverUrl getter to ApiClient
- Login screen now loads and displays saved server URL
- Server URL is properly persisted between app restarts
2025-11-07 18:24:58 +00:00
7792e21878 Add mobile model switching endpoint
- Add POST /api/mobile/models/switch endpoint
- Allows hot-swapping AI models from mobile app
- Saves model preference for next startup
- Uses JWT authentication
2025-11-07 18:18:37 +00:00
5faca76ef0 Add mobile chat endpoint for sending messages
- Add POST /api/mobile/chat endpoint with Form data
- Uses JWT authentication like other mobile endpoints
- Supports session_id (optional) to continue existing chats
- Returns AI response with mood context and session ID
2025-11-07 18:13:18 +00:00
32892b459e Fix chat sessions and datetime comparison errors
- Fix: Use db.get_chat_sessions() instead of get_all_chat_sessions()
- Fix: Ensure timezone-aware datetime comparisons in sync endpoint
- Resolves 'DiaryDatabase has no attribute' error
- Resolves 'can't compare offset-naive and offset-aware datetimes' error
2025-11-07 18:07:27 +00:00
2be62e27bd Add mobile chat endpoints and fix model loading
- Add /api/mobile/chat/sessions endpoint
- Add /api/mobile/chat/sessions/{id}/messages endpoint
- Add /api/mobile/models/list endpoint
- Fix mobile login to initialize AI components (emotion detector, RAG, Qwen)
- Models now load when connecting from mobile app, same as desktop
2025-11-07 17:59:24 +00:00
0d11d91e36 Fix Docker IP detection 2025-11-07 17:47:26 +00:00
9541132046 Add mobile IP auto-discovery and fix hardcoded IPs
- Use Docker host network mode for automatic IP detection
- Add FastAPI startup event to display Mobile URL
- Change frontend API path from hardcoded IP to relative path
2025-11-07 17:39:56 +00:00
0bb100437f LICENSE 2025-11-07 12:25:11 -05:00
04aa1438af initial commit 2025-11-07 12:18:14 -05:00