Repository navigation
feat: add StreamLake provider metadata - #40354
ZHOUKAILIAN wants to merge 4 commits into
Conversation
|
|
Greptile SummaryThis PR adds StreamLake as a declaratively configured OpenAI-compatible chat provider and publishes its model pricing, limits, and capability metadata
Confidence Score: 5/5The PR appears safe to merge, with provider registration, dispatch metadata, model information, and focused tests aligned No actionable failure remains; StreamLake resolves through the shared JSON-provider path, its model metadata follows catalog semantics, and both pricing catalogs stay synchronized
|
| Filename | Overview |
|---|---|
| litellm/llms/openai_like/providers.json | Adds the declarative StreamLake chat provider configuration, credential environment variables, base URL, and token mapping |
| litellm/constants.py | Registers StreamLake among known OpenAI-compatible endpoints and providers |
| litellm/types/utils.py | Adds the StreamLake provider enum member and read-only modality fields to public model metadata types |
| litellm/utils.py | Propagates image, video, and modality metadata from the model catalog through public model information |
| model_prices_and_context_window.json | Adds StreamLake model pricing, token limits, rate limits, and capability metadata |
| litellm/model_prices_and_context_window_backup.json | Keeps the bundled backup model catalog synchronized with the root catalog |
| provider_endpoints_support.json | Publishes StreamLake as supporting chat completions only |
| tests/test_litellm/llms/openai_like/test_streamlake_provider.py | Tests provider registration, resolution, URL construction, parameter mapping, catalog synchronization, capabilities, and pricing |
Reviews (1): Last reviewed commit: "feat: add StreamLake provider metadata" | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
3c1331f to
f557901
Compare
TLDR
Problem this solves:
How it solves it:
User Flow
Before: a developer cannot configure StreamLake by provider name
streamlake/<model-or-endpoint>After: the same developer can configure StreamLake by provider name
streamlake/<model-or-endpoint>completions URL
Relevant issues
Linear ticket
Pre-Submission checklist
uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where alaptop takes an hour or more
check, etc.)
problem
requesting a maintainer review
Screenshots / Proof of Fix
After 3c1331f
uv run pytest tests/test_litellm/llms/openai_like/test_streamlake_provider.py -q44 passed in 1.35suv run ruff check tests/test_litellm/llms/openai_like/test_streamlake_provider.py litellm/constants.py litellm/types/utils.py litellm/utils.pyAll checks passed!Type
New Feature
Test
Caveats (if any)
Low
Final Attestation
regressions in the respective real-world customer use-cases are not possible
after this PR