发布

  • [NA] [SDK] fix: quarantine litellm dependency with lazy imports (#5811)

    frostbyte_neo 发布于 2026-03-24 15:03:15 +00:00

    • [NA] [SDK] fix: quarantine litellm dependency with lazy imports

    Remove litellm from hard dependencies due to security quarantine.
    All litellm imports are now lazy so the SDK installs and imports
    without litellm - only features that use litellm will fail at
    call time.

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • fix(crewai): guard litellm import in patch_litellm_completion

    Prevents track_crewai() from crashing when litellm is not installed
    by catching ImportError and skipping the litellm patching gracefully.

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • test: skip litellm-dependent tests with requires_litellm marker

    Add a requires_litellm pytest marker that auto-skips tests when
    litellm is not installed. Applied to all test files that instantiate
    LiteLLM models, metrics with LLM judges, or use the litellm integration.

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com


    Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

    下载附件