INFO:     Uvicorn running on http://0.0.0.0:8002 (Press CTRL+C to quit)
INFO:     Started parent process [2845173]
INFO:     Started server process [2845176]
INFO:     Waiting for application startup.
2026-02-06 23:15:58,554 - oracle_service - INFO - 📁 Data directory: /home/galileetees/apis.pikzulstudios/bible-companion/data
2026-02-06 23:15:58,554 - oracle_service - INFO - ✅ Database initialized: data/oracle.db
2026-02-06 23:15:58,554 - sentence_transformers.SentenceTransformer - INFO - Load pretrained SentenceTransformer: all-MiniLM-L6-v2
INFO:     Started server process [2845177]
INFO:     Waiting for application startup.
2026-02-06 23:15:58,583 - oracle_service - INFO - 📁 Data directory: /home/galileetees/apis.pikzulstudios/bible-companion/data
2026-02-06 23:15:58,584 - oracle_service - INFO - ✅ Database initialized: data/oracle.db
2026-02-06 23:15:58,584 - sentence_transformers.SentenceTransformer - INFO - Load pretrained SentenceTransformer: all-MiniLM-L6-v2
2026-02-06 23:15:59,004 - sentence_transformers.SentenceTransformer - INFO - Use pytorch device: cpu
2026-02-06 23:15:59,004 - oracle_service - INFO - ✅ Embedding model loaded: all-MiniLM-L6-v2 (22MB)
2026-02-06 23:15:59,005 - oracle_service - INFO - 📑 Loaded 0 verse embeddings into index
2026-02-06 23:15:59,005 - main - INFO - 📜 Scripture Oracle initialized
2026-02-06 23:15:59,005 - llm_service - INFO - ✅ LMStudioClient initialized: base_url=http://localhost:11434, is_ollama=True, chat_url=http://localhost:11434/api/chat, model=llamafile/lfm2.5-1.2b
2026-02-06 23:15:59,005 - main - INFO - 🧠 LM Client initialized: model=llamafile/lfm2.5-1.2b, URL=http://localhost:11434
INFO:     Application startup complete.
2026-02-06 23:15:59,054 - sentence_transformers.SentenceTransformer - INFO - Use pytorch device: cpu
2026-02-06 23:15:59,054 - oracle_service - INFO - ✅ Embedding model loaded: all-MiniLM-L6-v2 (22MB)
2026-02-06 23:15:59,054 - oracle_service - INFO - 📑 Loaded 0 verse embeddings into index
2026-02-06 23:15:59,054 - main - INFO - 📜 Scripture Oracle initialized
2026-02-06 23:15:59,054 - llm_service - INFO - ✅ LMStudioClient initialized: base_url=http://localhost:11434, is_ollama=True, chat_url=http://localhost:11434/api/chat, model=llamafile/lfm2.5-1.2b
2026-02-06 23:15:59,054 - main - INFO - 🧠 LM Client initialized: model=llamafile/lfm2.5-1.2b, URL=http://localhost:11434
INFO:     Application startup complete.
2026-02-06 23:17:17,679 - main - INFO - 📖 Retrieved 66 books
INFO:     127.0.0.1:46478 - "GET /api/bible/books HTTP/1.1" 200 OK
2026-02-06 23:17:25,492 - main - INFO - 📖 Retrieved 66 books
INFO:     127.0.0.1:47258 - "GET /api/bible/books HTTP/1.1" 200 OK
2026-02-06 23:21:36,032 - main - INFO - 📖 Retrieved 65 books
INFO:     127.0.0.1:56306 - "GET /api/bible/books HTTP/1.1" 200 OK
2026-02-06 23:21:44,904 - main - INFO - 📖 Retrieved chapter JHN.3 with 36 verses
INFO:     127.0.0.1:57192 - "GET /api/bible/chapters/JHN.3 HTTP/1.1" 200 OK
WARNING:  Invalid HTTP request received.
2026-02-06 23:29:00,239 - main - INFO - 📖 Retrieved 65 books
INFO:     75.182.231.124:57772 - "GET /api/bible/books HTTP/1.1" 200 OK
2026-02-06 23:46:10,483 - main - INFO - 📖 Retrieved 65 books
INFO:     75.182.231.124:60166 - "GET /api/bible/books HTTP/1.1" 200 OK
2026-02-06 23:46:14,479 - main - INFO - 📖 Retrieved 65 books
INFO:     75.182.231.124:60166 - "GET /api/bible/books HTTP/1.1" 200 OK
2026-02-06 23:46:18,613 - main - INFO - 📖 Retrieved 34 chapters for DEU
INFO:     75.182.231.124:60166 - "GET /api/bible/books/DEU/chapters HTTP/1.1" 200 OK
2026-02-07 00:07:04,038 - main - INFO - 📖 Retrieved 65 books
INFO:     75.182.231.124:60238 - "GET /api/bible/books HTTP/1.1" 200 OK
2026-02-07 00:07:09,532 - main - INFO - 📖 Retrieved 36 chapters for NUM
INFO:     75.182.231.124:60240 - "GET /api/bible/books/NUM/chapters HTTP/1.1" 200 OK
2026-02-07 00:07:13,132 - main - INFO - 📖 Retrieved chapter NUM.3 with 51 verses
INFO:     75.182.231.124:60240 - "GET /api/bible/chapters/NUM.3 HTTP/1.1" 200 OK
2026-02-07 00:07:57,389 - main - INFO - 📖 Retrieved 24 chapters for 2SA
INFO:     75.182.231.124:60246 - "GET /api/bible/books/2SA/chapters HTTP/1.1" 200 OK
2026-02-07 00:08:02,554 - main - INFO - 📖 Retrieved chapter 2SA.1 with 34 verses
INFO:     75.182.231.124:60248 - "GET /api/bible/chapters/2SA.1 HTTP/1.1" 200 OK
2026-02-07 08:25:53,600 - main - INFO - 📖 Retrieved 65 books
INFO:     75.182.231.124:33032 - "GET /api/bible/books HTTP/1.1" 200 OK
2026-02-07 08:37:03,901 - main - INFO - 📖 Retrieved 65 books
INFO:     75.182.231.124:33076 - "GET /api/bible/books HTTP/1.1" 200 OK
INFO:     127.0.0.1:35178 - "GET /health HTTP/1.1" 200 OK
INFO:     127.0.0.1:42568 - "POST /api/chat HTTP/1.1" 422 Unprocessable Entity
INFO:     127.0.0.1:43978 - "POST /api/chat HTTP/1.1" 422 Unprocessable Entity
INFO:     199.250.201.77:47564 - "HEAD /health HTTP/1.1" 405 Method Not Allowed
INFO:     75.182.231.124:56371 - "GET /health HTTP/1.1" 200 OK
INFO:     75.182.231.124:56373 - "GET /health HTTP/1.1" 200 OK
INFO:     Shutting down
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
INFO:     Finished server process [2845176]
INFO:     Shutting down
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
INFO:     Finished server process [2845177]
INFO:     Stopping parent process [2845173]
