apac-ops-bot/backend/app/models
SamoilenkoVadym c15f35a1df Update pricing for gpt-5-nano and fix chat interface
- Update token pricing with actual gpt-5-nano-2025-08-07 prices:
  * Input: $0.05 per 1M = $0.00005 per 1K
  * Cached: $0.005 per 1M = $0.000005 per 1K
  * Output: $0.40 per 1M = $0.0004 per 1K
- Add cached_tokens support in OpenAI service
- Update cost calculation to use cached token pricing
- Add cached_tokens column to token_usage table (migration)
- Fix chat interface keyboard handling:
  * Send message on Enter key
  * New line on Shift+Enter
  * Change onKeyPress to onKeyDown for better support
- Add textarea auto-resize with maxHeight limit
- Improve responsive styles for mobile devices
- Add iOS-specific fixes (prevent zoom on input focus)
2026-01-27 20:18:42 +00:00
..
__init__.py Add comprehensive backend test suite and Phase 1 foundation 2026-01-27 14:24:59 +00:00
conversation.py Add test user authentication and RBAC admin panel 2026-01-27 20:05:54 +00:00
message.py Add test user authentication and RBAC admin panel 2026-01-27 20:05:54 +00:00
session.py Add comprehensive backend test suite and Phase 1 foundation 2026-01-27 14:24:59 +00:00
token_usage.py Update pricing for gpt-5-nano and fix chat interface 2026-01-27 20:18:42 +00:00
user.py Add test user authentication and RBAC admin panel 2026-01-27 20:05:54 +00:00
user_memory.py Add test user authentication and RBAC admin panel 2026-01-27 20:05:54 +00:00