Skip to content

Commit 6466488

Browse files
committedApr 22, 2025
Update doc string for resolve_api_base to reflect default value.
1 parent c9fc03e commit 6466488

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎litellm/llms/llamafile/chat/transformation.py

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def resolve_api_key(api_key: Optional[str] = None) -> str:
2121
def resolve_api_base(api_base: Optional[str] = None) -> Optional[str]:
2222
"""Attempt to ensure that the API base is set, preferring the user-provided key
2323
over the secret manager key (``LLAMAFILE_API_BASE``).
24+
25+
If both are None, a default Llamafile server URL is returned.
26+
See: https://github.com/Mozilla-Ocho/llamafile/blob/bd1bbe9aabb1ee12dbdcafa8936db443c571eb9d/README.md#L61
2427
"""
2528
return api_base or get_secret_str("LLAMAFILE_API_BASE") or "http://127.0.0.1:8080/v1" # type: ignore
2629

0 commit comments

Comments
 (0)