#31968 [Bug]: STORE_MODEL_IN_DB=True ignored when LiteLLM_Config.general_settings.store_model_in_db=false
### Check for existing issues
- [x] I have searched the existing issues and checked that my issue is not a duplicate.
### What happened?
Deployment: - Kubernetes - PostgreSQL - LiteLLM Database Image
Configuration:
Environment: STORE_MODEL_IN_DB=True
config.yaml:
general_settings: store_model_in_db: true
Issue:
POST /model/new returns
Set 'STORE_MODEL_IN_DB=True'
Investigation:
LiteLLM_Config.general_settings contained
{ "store_model_in_db": false }
Updating the DB value to true immediately resolved the issue.
Expected:
Either: - Environment/config should override the persisted DB value
or
- The error message should indicate that LiteLLM_Config.general_settings.store_model_in_db is false.
### Steps to Reproduce
1. 2. 3.
### Relevant log output
```shell Failed to add model: ApiError: {'error': "Set `'STORE_MODEL_IN_DB='True'` in your env to enable this feature."} ```
### What part of LiteLLM is this about?
_No response_
### What LiteLLM version are you on ?
v1.90.1 , ghcr.io/berriai/litellm-database:v1.90.0 , v1.90.1
### Twitter / LinkedIn details
_No response_