Skip to content

chore(litellm): Remove include_prompts parameter - #7679

Merged
alexander-alderman-webb merged 1 commit into
major/3.0from
webb/litellm/remove-include-prompts
Sep 23, 2026
Merged

alexander-alderman-webb merged 1 commit into
major/3.0from
webb/litellm/remove-include-prompts

Conversation

@alexander-alderman-webb

Copy link
Copy Markdown
Contributor

Description

Remove the include_prompts parameter. The parameter allowed users to opt-out of collecting GenAI attributes while keeping send_default_pii=True. The parameter is ignored when data collection is used, and the major is dropping send_default_pii in favor of data collection.

Issues

Reminders

@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review September 23, 2026 12:25
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner September 23, 2026 12:26
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 65316 passed | ❌ 2 failed | ⏭️ 2971 skipped | Total: 68289 | Pass Rate: 95.65% | Execution Time: 186m 59s

📊 Comparison with Base Branch

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

➕ New Tests (2)

View new tests
  • test_input_attributes_nonstreaming_chat[True-messages0-expected_system_instructions0-expected_input_messages0]
    • File: tests.integrations.mistral.test_mistral
    • Status: ❌ Failing
  • test_transaction_name[/message-hi-component]
    • File: tests.integrations.sanic.test_sanic
    • Status: ❌ Failing

❌ Failed Tests

test_input_attributes_nonstreaming_chat[True-messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.0.5
Error: KeyError: 140699939721216

Stack Trace
tests/integrations/mistral/test_mistral.py:380: in test_input_attributes_nonstreaming_chat
    sentry_init(
tests/conftest.py:349: in inner
    client = sentry_sdk.Client(*a, **kw)
sentry_sdk/client.py:278: in __init__
    self._init_impl()
sentry_sdk/client.py:428: in _init_impl
    self.integrations = setup_integrations(
sentry_sdk/integrations/__init__.py:216: in setup_integrations
    for integration_cls in iter_default_integrations(
sentry_sdk/integrations/__init__.py:44: in iter_default_integrations
    yield getattr(import_module(module), cls)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1024: in _find_and_load
    ???
<frozen importlib._bootstrap>:171: in __enter__
    ???
<frozen importlib._bootstrap>:123: in acquire
    ???
E   KeyError: 140699939721216

test_transaction_name[/message-hi-component]

File: tests.integrations.sanic.test_sanic
Suite: py3.10-sanic-v22.3.2
Error: OSError: [Errno 98] error while attempting to bind on address ('127.0.0.1', 33011): address already in use

Stack Trace
tests/integrations/sanic/test_sanic.py:151: in test_transaction_name
    with c as client:
/usr/lib/python3.10/contextlib.py:135: in __enter__
    return next(self.gen)
tests/integrations/sanic/test_sanic.py:95: in reusable_client
    client.__enter__()
.tox/py3.10-sanic-v22.3.2/lib/python3.10/site-packages/sanic_testing/reusable.py:63: in __enter__
    self.run()
.tox/py3.10-sanic-v22.3.2/lib/python3.10/site-packages/sanic_testing/reusable.py:74: in run
    self._server = self._run(self._server_co)
.tox/py3.10-sanic-v22.3.2/lib/python3.10/site-packages/sanic_testing/reusable.py:198: in _run
    return self._loop.run_until_complete(coro)
/usr/lib/python3.10/asyncio/base_events.py:649: in run_until_complete
    return future.result()
.tox/py3.10-sanic-v22.3.2/lib/python3.10/site-packages/sanic/mixins/runner.py:360: in create_server
    return await serve(
.tox/py3.10-sanic-v22.3.2/lib/python3.10/site-packages/sanic/server/async_server.py:131: in __await__
    self.server = task.result()
/usr/lib/python3.10/asyncio/base_events.py:1519: in create_server
    raise OSError(err.errno, 'error while attempting '
E   OSError: [Errno 98] error while attempting to bind on address ('127.0.0.1', 33011): address already in use

✅ Patch coverage is 100.00%. Project has 2090 uncovered lines.
❌ Project coverage is 90.1%. Comparing base (0dbe856) to head (e5ead93).

Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.22%    90.10%    -0.12%
==========================================
  Files          194       180       -14
  Lines        25997     21101     -4896
  Branches      9662      7624     -2038
==========================================
+ Hits         23454     19011     -4443
- Misses        2543      2090      -453
- Partials      1451      1198      -253

Generated by Codecov Action

@alexander-alderman-webb
alexander-alderman-webb merged commit 90bbfc0 into major/3.0 Sep 23, 2026
144 of 147 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/litellm/remove-include-prompts branch September 23, 2026 13:42
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.

2 participants