Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/framework/llm/litellm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
from pathlib import Path
from typing import Any

# VERSION GUARD: These patches target litellm internals that may change across versions.
# If litellm is upgraded and patches fail silently, LLM calls may break.
# See: https://github.com/aden-hive/hive/issues/5948
# TODO(fix/litellm-patch-version-guards): Add importlib.metadata version check and
# logger.warning() when patch targets don't exist or version is outside known-working range.
try:
import litellm
from litellm.exceptions import RateLimitError
Expand Down
Loading