You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closesamd#1625
## Why this matters
After amd#1593 added the LiteLLM provider, `LiteLLMProvider.embed()`
crashed with `TypeError: embedding() got multiple values for keyword
argument 'model'` the moment a caller overrode the model — `model` was
passed both explicitly and inside the spread `**call_kwargs`, and that
path had zero test coverage. Now `embed()` works with and without a
model override, and the rest of the amd#1593 review is closed out: the
provider is documented, the `create_client` docstring lists it, and the
redundant `drop_params` handling is collapsed to a single per-call
default callers can override.
## Test plan
- [x] `pytest tests/unit/test_litellm_provider.py` → 12 passed (incl. 2
new `embed()` tests; the override test reproduced the `TypeError` before
the fix)
- [x] `util/lint.py --black --isort --flake8` → all PASS
- [ ] CI green after maintainer approves the workflow run
---------
Co-authored-by: Tomasz Iniewicz <heaters-nays0p@icloud.com>
0 commit comments