- Merge request !13[#3554855] fix: Use overridden config to query for key data on settings form → (Open) created by lussoluca
LiteLLM host and api_key are usually environment-specific. A typical use case is to expose their values as environment variables and then map the envs to config in settings.php.
The settings form of the module always uses the non-overridden values to query for key data, resulting in errors on environments where the host or the key was overridden.
Override the host configuration in settings.php, like: $config['ai_provider_litellm.settings']['host'] = getenv('LITELLM_HOST');. The keyInfo call used on LiteLlmAiConfigForm always uses the stored config, instead of the overridden ones.
Load the overridden configuration to call the keyInfo endpoint in the settings form.
implement it
none
none
none
Active
1.2
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.