Fix comprehensive system issues and implement proper vector database backend selection
- Fix reflection memory spam despite zero active characters in scheduler.py - Add character enable/disable functionality to admin interface - Fix Docker configuration with proper network setup and service dependencies - Resolve admin interface JavaScript errors and login issues - Fix MCP import paths for updated package structure - Add comprehensive character management with audit logging - Implement proper character state management and persistence - Fix database connectivity and initialization issues - Add missing audit service for admin operations - Complete Docker stack integration with all required services 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
13
src/main.py
13
src/main.py
@@ -72,13 +72,12 @@ class FishbowlApplication:
|
||||
await create_tables()
|
||||
logger.info("Database initialized")
|
||||
|
||||
# Check LLM availability
|
||||
# Check LLM availability (non-blocking)
|
||||
is_available = await llm_client.check_model_availability()
|
||||
if not is_available:
|
||||
logger.error("LLM model not available. Please check your LLM service.")
|
||||
raise RuntimeError("LLM service unavailable")
|
||||
|
||||
logger.info(f"LLM model '{llm_client.model}' is available")
|
||||
logger.warning("LLM model not available at startup. Bot will continue and retry connections.")
|
||||
else:
|
||||
logger.info(f"LLM model '{llm_client.model}' is available")
|
||||
|
||||
# Initialize RAG systems
|
||||
logger.info("Initializing RAG systems...")
|
||||
@@ -143,6 +142,10 @@ class FishbowlApplication:
|
||||
# Initialize Discord bot
|
||||
self.discord_bot = FishbowlBot(self.conversation_engine)
|
||||
|
||||
# Set global bot instance for status messages
|
||||
import bot.discord_client
|
||||
bot.discord_client._discord_bot = self.discord_bot
|
||||
|
||||
# Initialize message and command handlers
|
||||
self.message_handler = MessageHandler(self.discord_bot, self.conversation_engine)
|
||||
self.command_handler = CommandHandler(self.discord_bot, self.conversation_engine)
|
||||
|
||||
Reference in New Issue
Block a user