Skip to content

Commit 48c6bef

Browse files
fix(backend): remove duplicated health_check route that caused tests to fail
1 parent 1250f38 commit 48c6bef

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

‎backend/app.py‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,26 +1256,6 @@ def handle_chat(validated_data):
12561256
logger.error(f"Unexpected error in handle_chat: {type(e).__name__}: {e}", exc_info=True)
12571257
return handle_exception(e, "handle_chat")
12581258

1259-
@app.route('/api/v1/health', methods=['GET'])
1260-
def health_check():
1261-
"""Health check endpoint with cache statistics."""
1262-
cache_stats = cache_service.get_stats()
1263-
1264-
return jsonify({
1265-
"status": "healthy",
1266-
"service": "BiblioDrift AI Service",
1267-
"version": "2.0.0",
1268-
"features": {
1269-
"mood_analysis_available": MOOD_ANALYSIS_AVAILABLE,
1270-
"llm_service_available": llm_service.is_available(),
1271-
"openai_configured": llm_service.openai_client is not None,
1272-
"groq_configured": llm_service.groq_client is not None,
1273-
"gemini_configured": llm_service.gemini_client is not None,
1274-
"preferred_llm": llm_service.preferred_llm,
1275-
"caching_enabled": cache_stats.get('cache_type') != 'null'
1276-
},
1277-
"cache": cache_stats
1278-
})
12791259

12801260

12811261
# =========================================================================

0 commit comments

Comments
 (0)