Skip to content

chore: sync upstream 2026-07-09 - #108

Merged
shudonglin merged 6 commits into
litellm_internal_stagingfrom
chore/sync-upstream-2026-07-09
Jul 9, 2026
Merged

shudonglin merged 6 commits into
litellm_internal_stagingfrom
chore/sync-upstream-2026-07-09

Conversation

@shudonglin

@shudonglin shudonglin commented Jul 9, 2026 •

Copy link
Copy Markdown

Full -X theirs sync of https://github.com/BerriAI/litellm litellm_internal_staging.

Relevant issues

Linear ticket

Pre-Submission checklist

  • I have added meaningful tests
  • My PR passes all CI/CD checks (e.g., lint, format, unit tests)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Screenshots / Proof of Fix

Automated upstream sync; no fork-specific behavior change beyond the merged upstream commits.

Type

🚄 Infrastructure

Changes

Merges 4 upstream commits into the fork's default branch:

All fork-side patches tracked in .github/fork-patches.txt were verified intact after the merge.

devin-ai-integration Bot and others added 5 commits July 8, 2026 17:37
…2549)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
…est content (BerriAI#32533)

* fix(rerank): log optional_rerank_params at debug not info to avoid leaking request content

* test(rerank): exercise sync rerank path so coverage counts the log line

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…te (BerriAI#30857)

* refactor(ui): point invitation links at the dedicated /onboarding route

Invitation and reset-password links were built as /ui?invitation_id=..., which lands on the dashboard index and renders the onboarding form inline. They now point at the standalone /ui/onboarding route, so the index no longer has to special-case invitations. Old links keep working unchanged; the index still renders onboarding inline for ?invitation_id until the migration closeout removes that branch.

Updates the three generators (the enterprise email builder, bulk user create, and the invitation/reset-password modal) and extracts the modal's URL building into a pure, unit-tested buildOnboardingUrl

Refs LIT-3687

* refactor(ui): guard buildOnboardingUrl against a missing invitation id

Return "" instead of emitting an invitation_id=undefined link when the id is not yet available, matching the existing empty-baseUrl guard. Placed after the SSO branch so the SSO link, which does not use the id, is unaffected

Refs LIT-3687
…cks (BerriAI#32551)

Bedrock Converse supports cachePoint ttl (1h GA for Claude 4.5+), and
_get_cache_point_block maps cache_control.ttl -> cachePoint.ttl, but the
model parameter its allow-list gate requires was only threaded through
the system-message path. Every message-level path either called
_get_cache_point_block without model= (8 call sites in
_bedrock_converse_messages_pt / _pt_async) or hardcoded
CachePointBlock(type="default") (tool-result blocks and
_convert_to_bedrock_tool_call_invoke), so a requested 1h ttl silently
degraded to the 5-minute default - exactly on the conversation-tail
breakpoint that long-running agents need to survive tool calls longer
than 5 minutes.

- pass model= at the 8 _get_cache_point_block call sites
- tool-result blocks: capture the cache_control dict (was a boolean)
  and route through _get_cache_point_block so ttl survives
- _convert_to_bedrock_tool_call_invoke: accept optional model and route
  per-tool-call cache_control through _get_cache_point_block

Completes the ttl support added for system messages (BerriAI#19848, BerriAI#20326):
message-level cache_control now behaves identically.

Note: message-level cache_control on a content-less assistant message
emits no cachePoint at all today; that pre-existing gap is orthogonal
to ttl and left out of scope (per-tool-call placement covers it).

Co-authored-by: Arash <arashne@glia-ai.com>

export function buildOnboardingUrl({
baseUrl,
invitationId,
Upstream's onboarding_link refactor added 7 large-inline-object-arg
call sites, moving the actual count to 518 against a committed budget
of 511. Regenerated via npm run lint:metrics.
@shudonglin
shudonglin merged commit 00453df into litellm_internal_staging Jul 9, 2026
75 of 76 checks passed
@shudonglin
shudonglin deleted the chore/sync-upstream-2026-07-09 branch July 9, 2026 06:50
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.

5 participants