Skip to content

feat(litellm): Add async callbacks#5969

Draft
alexander-alderman-webb wants to merge 7 commits intowebb/litellm/rate-limit-mockfrom
webb/litellm/async-hooks
Draft

feat(litellm): Add async callbacks#5969
alexander-alderman-webb wants to merge 7 commits intowebb/litellm/rate-limit-mockfrom
webb/litellm/async-hooks

Conversation

@alexander-alderman-webb
Copy link
Copy Markdown
Contributor

Description

Issues

Reminders

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

Codecov Results 📊

48 passed | Total: 48 | Pass Rate: 100% | Execution Time: 10.52s

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests 📈 +2
Failed Tests
Skipped Tests 📉 -2

✨ No test changes detected

All tests are passing successfully.

❌ Patch coverage is 0.00%. Project has 15729 uncovered lines.
❌ Project coverage is 25.91%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
litellm.py 0.00% ⚠️ 148 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    25.97%    25.91%    -0.06%
==========================================
  Files          191       191         —
  Lines        21221     21231       +10
  Branches      6976      6982        +6
==========================================
+ Hits          5511      5502        -9
- Misses       15710     15729       +19
- Partials       524       521        -3

Generated by Codecov Action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Litellm

  • Add async callbacks by alexander-alderman-webb in #5969
  • Add async callbacks by alexander-alderman-webb in #5969

Other

  • (ai) Redact base64 data URLs in image_url content blocks by ericapisani in #5953
  • (integrations) Instrument pyreqwest tracing by servusdei2018 in #5682

Bug Fixes 🐛

Anthropic

  • Capture exceptions for stream() calls by alexander-alderman-webb in #5950
  • Stop setting transaction status when child span fails by alexander-alderman-webb in #5717
  • Only finish relevant spans in .create() patches by alexander-alderman-webb in #5716

Other

  • (litellm) Avoid double span exits when streaming by alexander-alderman-webb in #5933
  • (pydantic-ai) Use first-class hooks when available by alexander-alderman-webb in #5947
  • (wsgi) Respect HTTP_X_FORWARDED_PROTO in request.url construction by sl0thentr0py in #5963

Internal Changes 🔧

  • (ai) Remove gen_ai.tool.type span attribute by ericapisani in #5964
  • (anthropic) Separate sync and async .create() patches by alexander-alderman-webb in #5715
  • (litellm) Replace mocks with httpx types in nonstreaming completion() tests by alexander-alderman-webb in #5937
  • (openai) Split token counting by API for easier deprecation by ericapisani in #5930
  • (opentelemetry) Ignore mypy error by alexander-alderman-webb in #5927
  • Fix license metadata in setup.py by sl0thentr0py in #5934
  • Update validate-pr workflow by stephanie-anderson in #5931

Other

  • Handle None span context in the span processor and pin tokenizers version for anthropic tests on Python 3.8 by alexander-alderman-webb in #5967

🤖 This preview updates automatically when you update the PR.

@alexander-alderman-webb alexander-alderman-webb changed the base branch from webb/litellm/remove-mocks to webb/litellm/error-mock April 10, 2026 12:01
Base automatically changed from webb/litellm/error-mock to webb/litellm/embedding-tests April 10, 2026 13:05
@alexander-alderman-webb alexander-alderman-webb changed the base branch from webb/litellm/embedding-tests to webb/litellm/rate-limit-mock April 10, 2026 13:11
@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review April 10, 2026 14:01
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner April 10, 2026 14:01
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c5063a0. Configure here.

@alexander-alderman-webb alexander-alderman-webb marked this pull request as draft April 10, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant