fix: pass api_key directly to litellm for more robust auth

This commit is contained in:
Re-bin 2026-02-10 02:09:31 +00:00
parent ec4340d0d8
commit fba5345d20

View File

@ -132,6 +132,10 @@ class LiteLLMProvider(LLMProvider):
# Apply model-specific overrides (e.g. kimi-k2.5 temperature)
self._apply_model_overrides(model, kwargs)
# Pass api_key directly — more reliable than env vars alone
if self.api_key:
kwargs["api_key"] = self.api_key
# Pass api_base for custom endpoints
if self.api_base:
kwargs["api_base"] = self.api_base