Import Notes & Disclaimers for Self-Hosting SapienAI
- Security: Many environment variables, especially API keys are sensitive. Ensure they are stored securely and not hardcoded or committed to version control.
- Model Availability: The application dynamically determines available AI models based on the presence of their respective API keys or configurations. If a required key/config is missing for a model, that model will not be available for use.
- Validation: The application performs a basic validation check on startup. If critical environment variables are missing or improperly set (e.g., if no AI models can be configured), the application may fail to start. Check the Docker logs for details in such cases.
- Default Values: Many variables have default values to maximise performance, such as large default conversation token allowances. This can increase costs, so be sure to keep an eye on API spend.