Skip to content

Commit ccdac20

Browse files
fix(llm): forward base_url via api_base for litellm.completion; keep responses using api_base already
- Align litellm completion kwargs to use api_base (some providers expect this) Co-authored-by: openhands <openhands@all-hands.dev>
1 parent a088389 commit ccdac20

File tree

1 file changed

+1
-1
lines changed
  • openhands-sdk/openhands/sdk/llm

1 file changed

+1
-1
lines changed

openhands-sdk/openhands/sdk/llm/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ def _transport_call(
668668
ret = litellm_completion(
669669
model=self.model,
670670
api_key=self.api_key.get_secret_value() if self.api_key else None,
671-
base_url=self.base_url,
671+
api_base=self.base_url,
672672
api_version=self.api_version,
673673
timeout=self.timeout,
674674
drop_params=self.drop_params,

0 commit comments

Comments
 (0)