FAQ
Installation & Setup
What are the minimum requirements?
Liz requires Node.js 18+ and either SQLite or PostgreSQL for the database. For development, SQLite is recommended as it requires no additional setup. For production, PostgreSQL is recommended for better scalability.
Why am I getting environment variable errors?
Make sure you've copied .env.example to .env and filled in all required variables:
DATABASE_URL for your database connection
OPENAI_API_KEY for OpenAI API access
OPENROUTER_API_KEY for OpenRouter API access
APP_URL for OpenRouter callbacks
How do I switch from SQLite to PostgreSQL?
Update your DATABASE_URL in .env and modify prisma/schema.prisma:
Then run prisma migrate to update your database:
LLM Integration
Can I use different LLM providers?
Yes, Liz supports both OpenAI and OpenRouter APIs. OpenRouter gives you access to models from Anthropic, Google, and others. You can specify the model when calling LLMUtils methods:
How do I handle rate limits?
Implement exponential backoff and retry logic in your routes:
Performance
How can I optimize memory usage?
Several strategies can help manage memory usage:
Limit the number of memories loaded per request
Implement memory pruning for old conversations
Use database indexing effectively
Consider memory summarization for long conversations
How do I handle high traffic?
For high-traffic applications:
Use PostgreSQL instead of SQLite
Implement request queuing
Cache common responses
Use load balancing with multiple instances
Twitter Integration
Why is my Twitter bot not working?
Common Twitter integration issues:
Incorrect credentials in environment variables
Missing 2FA secret for accounts with 2FA enabled
Rate limiting from too frequent posting
Network issues preventing login
Use dryRun mode to test your bot without posting:
Contributing
How can I contribute to Liz?
We welcome contributions! Here's how to get started:
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
Please follow our coding standards and include clear commit messages.
Last updated