mitai-jinkendo/backend/routers
Lars 4b6e1bed11
All checks were successful
Deploy Development / deploy (push) Successful in 54s
Build Test / pytest-backend (push) Successful in 4s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 16s
feat: Enhance OpenRouter API interaction and error handling
- Increased the maximum token limit in the `call_openrouter` function from 1500 to 4096 to allow for more extensive responses.
- Implemented robust error handling for API requests, including timeout and request errors, with detailed HTTP exceptions for better debugging.
- Improved JSON response handling to ensure valid data is returned, with specific error messages for missing content in the response.
- Enhanced the overall reliability of the OpenRouter API integration, providing clearer feedback for users in case of issues.

These changes improve the user experience by ensuring more comprehensive responses and clearer error reporting during API interactions.
2026-04-12 11:03:07 +02:00
..
__init__.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
access_grants.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +01:00
activity.py refactor(csv_parser): Update training type resolution to use existing database cursor 2026-04-11 06:27:11 +02:00
admin_activity_mappings.py feat: learnable activity type mapping system (DB-based, auto-learning) 2026-03-21 19:31:58 +01:00
admin_csv_templates.py feat(csv-templates): Add CSV template validation endpoint and enhance error handling 2026-04-11 06:47:27 +02:00
admin_reference_value_types.py feat: Implement reference value types reordering and confidence level sorting 2026-04-06 21:40:55 +02:00
admin_training_types.py feat: Training Type Profiles Phase 2.1 - Backend Profile Management (#15) 2026-03-23 11:50:40 +01:00
admin.py feat: Implement widget-feature assignment management in admin dashboard 2026-04-08 12:26:28 +02:00
app_dashboard.py feat: Introduce admin dashboard product standard management 2026-04-08 10:32:18 +02:00
auth.py fix: email verification redirect and already-used token message 2026-03-21 12:28:51 +01:00
blood_pressure.py fix: support German column names in CSV imports 2026-03-23 16:40:49 +01:00
caliper.py feat: Integrate caliper data enrichment and weight loading in API responses 2026-04-06 06:08:37 +02:00
charts.py feat: Enhance nutrition and activity metrics with new data layers 2026-04-11 20:46:17 +02:00
circumference.py feat: Phase 4 Batch 1 - enable enforcement for data entries 2026-03-21 06:57:05 +01:00
coupons.py feat: add coupon management and redemption 2026-03-19 13:07:09 +01:00
csv_import.py feat(csv-templates): Add CSV template validation endpoint and enhance error handling 2026-04-11 06:47:27 +02:00
evaluation.py feat: Training Type Profiles - Phase 1.1 Foundation (#15) 2026-03-23 10:49:26 +01:00
exportdata.py feat: Integrate caliper data enrichment and weight loading in API responses 2026-04-06 06:08:37 +02:00
features.py fix: prevent connection pool exhaustion in features/usage 2026-03-21 07:02:42 +01:00
fitness_tests.py refactor: split goals.py into 5 modular routers 2026-03-28 06:31:31 +01:00
focus_areas.py feat: Implement focus area usage types management in API and UI 2026-04-06 07:28:19 +02:00
goal_progress.py refactor: split goals.py into 5 modular routers 2026-03-28 06:31:31 +01:00
goal_types.py refactor: split goals.py into 5 modular routers 2026-03-28 06:31:31 +01:00
goals.py docs: cleanup debug logs + document goal system enhancements 2026-03-28 17:32:13 +01:00
importdata.py feat: complete Phase 4 enforcement for all features (backend) 2026-03-21 07:40:37 +01:00
insights.py feat: Pipeline-System - Backend Infrastructure (Issue #28, Phase 1) 2026-03-25 09:42:28 +01:00
nutrition.py feat: Integrate caliper data enrichment and weight loading in API responses 2026-04-06 06:08:37 +02:00
photos.py fix: photo upload date parameter parsing 2026-03-22 14:33:01 +01:00
profiles.py feat: Enhance profile update functionality with email validation and improved error handling 2026-04-05 11:14:01 +02:00
prompts.py feat: Enhance OpenRouter API interaction and error handling 2026-04-12 11:03:07 +02:00
reference_values.py feat: Update reference values and introduce pilot visualization module 2026-04-07 10:15:13 +02:00
rest_days.py feat: prevent duplicate rest day types per date (Migration 012) 2026-03-22 17:36:49 +01:00
sleep.py feat(csv-import): Enhance CSV import functionality with new modules and tests 2026-04-10 07:30:48 +02:00
stats.py refactor: modular backend architecture with 14 router modules 2026-03-19 11:15:35 +01:00
subscription.py feat: add user subscription info endpoints 2026-03-19 13:05:55 +01:00
tier_limits.py fix: show all tiers in admin matrix editor including selfhosted 2026-03-20 06:19:32 +01:00
tiers_mgmt.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +01:00
training_phases.py refactor: split goals.py into 5 modular routers 2026-03-28 06:31:31 +01:00
training_types.py feat: add extended training types (cardio walk/dance, mind & meditation) 2026-03-21 15:16:07 +01:00
user_restrictions.py feat: add admin management routers for subscription system 2026-03-19 13:09:33 +01:00
vitals_baseline.py fix: Phase 0b - fix remaining calculation errors 2026-03-28 08:39:31 +01:00
weight.py feat: Phase 4 Batch 1 - enable enforcement for data entries 2026-03-21 06:57:05 +01:00
workflow_questions.py feat: Phase 1 - Fragenergänzung + Strukturierter Container 2026-04-03 18:02:25 +02:00
workflows.py fix: Use dict keys instead of numeric indices for RealDictCursor rows 2026-04-03 21:34:47 +02:00