fix: correct comment about base_url/api_base behavior when both provided

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2026-03-27 12:28:25 +00:00
parent 1f8836371f
commit a912bb8bb9

View File

@@ -682,7 +682,7 @@ class LLM(BaseLLM):
self.top_logprobs = top_logprobs
# Sync base_url and api_base so that litellm always receives the
# custom endpoint regardless of which parameter the caller supplied.
# When both are provided, api_base wins (it is the litellm-native name).
# When both are provided, both keep their explicit values.
if api_base and not base_url:
base_url = api_base
elif base_url and not api_base: