Repository navigation
Conversation
Greptile SummaryAdds Jalapeno Cloud as a declarative OpenAI-compatible provider
Confidence Score: 4/5The provider wiring appears sound, but the explicit source-comment and meaningful-test requirements must be satisfied before merging The packaged endpoint matrix and API-base inference findings are fixed. Responses and Messages tests now verify adapter selection, URLs, and authentication, but still do not execute request and response translation through transport, so the previous meaningful-test finding remains outstanding. The new descriptive constants comment also violates the same repository source-comment rule. The base URL and docstring threads were manually resolved without explanation Files Needing Attention: litellm/constants.py, tests/test_litellm/llms/openai_like/test_jalapeno_provider.py
|
| Filename | Overview |
|---|---|
| litellm/constants.py | Registers Jalapeno for OpenAI-compatible provider and API-base inference, with one prohibited descriptive comment |
| litellm/llms/openai_like/providers.json | Defines Jalapeno credentials, default base URL, parameter mapping, and supported endpoint paths |
| litellm/provider_endpoints_support_backup.json | Adds Jalapeno to the packaged endpoint matrix used for public discovery |
| model_prices_and_context_window.json | Adds pricing, limits, endpoint support, and capability metadata for 20 Jalapeno models |
| litellm/model_prices_and_context_window_backup.json | Synchronizes packaged Jalapeno model metadata with the primary catalog |
| tests/test_litellm/llms/openai_like/test_jalapeno_provider.py | Expands registration, routing, URL, authentication, pricing, and endpoint configuration coverage, but the previous transport-depth concern remains |
| litellm/types/utils.py | Adds Jalapeno to the provider enum |
| provider_endpoints_support.json | Advertises Jalapeno support for chat completions, Responses, and Messages |
Reviews (2): Last reviewed commit: "feat: add Jalapeno Cloud as an OpenAI-co..." | Re-trigger Greptile
| "jalapeno": { | ||
| "display_name": "Jalapeno Cloud (`jalapeno`)", | ||
| "url": "https://docs.litellm.ai/docs/providers/jalapeno", | ||
| "endpoints": { | ||
| "chat_completions": true, | ||
| "messages": true, | ||
| "responses": true, | ||
| "embeddings": false, | ||
| "image_generations": false, | ||
| "audio_transcriptions": false, | ||
| "audio_speech": false, | ||
| "moderations": false, | ||
| "batches": false, | ||
| "rerank": false, | ||
| "a2a": false | ||
| } | ||
| } |
There was a problem hiding this comment.
Packaged endpoint matrix stale
/public/endpoints reads only the packaged backup, which lacks Jalapeno, so public discovery omits the new provider.
Knowledge Base Used: Provider adapters and capabilities
| def test_jalapeno_supports_responses_and_messages(): | ||
| import litellm | ||
| from litellm.llms.openai_like.messages.transformation import ( | ||
| JSONProviderAnthropicMessagesConfig, | ||
| ) | ||
| from litellm.utils import ProviderConfigManager | ||
|
|
||
| assert JSONProviderRegistry.supports_responses_api("jalapeno") is True | ||
|
|
||
| responses_config = ProviderConfigManager.get_provider_responses_api_config( | ||
| provider="jalapeno", | ||
| model="jalapeno/DeepSeek-V4-Flash", | ||
| ) | ||
| assert responses_config is not None | ||
|
|
||
| messages_config = ProviderConfigManager.get_provider_anthropic_messages_config( | ||
| model="DeepSeek-V4-Flash", | ||
| provider=litellm.LlmProviders.JALAPENO, | ||
| ) | ||
| assert isinstance(messages_config, JSONProviderAnthropicMessagesConfig) | ||
|
|
||
| url = messages_config.get_complete_url( | ||
| api_base=None, | ||
| api_key="sk-test", | ||
| model="DeepSeek-V4-Flash", | ||
| optional_params={}, | ||
| litellm_params={}, | ||
| ) | ||
| assert url == f"{JALAPENO_BASE_URL}/messages" |
There was a problem hiding this comment.
Endpoint tests are shallow These assertions never exercise Responses or Messages transport, violating the repository's meaningful-test requirement and allowing broken translation through CI.
Context Used: CLAUDE.md (source)
Knowledge Base Used: Provider adapters and capabilities
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Register jalapeno with chat/completions, responses, and messages support, including model pricing from the public marketplace catalog. Co-authored-by: Cursor <cursoragent@cursor.com>
f12f7e6 to
34d94ff
Compare
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Register jalapeno with chat/completions, responses, and messages support, including model pricing from the public marketplace catalog.
TLDR
Problem this solves:
api_basefor every callHow it solves it:
jalapeno/as an OpenAI-compatible providerUser Flow
Before: a developer calling Jalapeno through LiteLLM has no built-in provider, so they must wire a custom OpenAI-compatible base URL by hand
https://api.jalapeno-cloud.ai/v1with their Jalapeno API keyPOST https://litellm-domain/v1/chat/completionswith a model likeopenai/DeepSeek-V4-Flash(or another custom prefix) and messagesapi_basecorrectly;jalapeno/...is not recognized as a first-class providerAfter: the same developer uses the built-in
jalapeno/provider with catalog pricingJALAPENO_API_KEY(optional:JALAPENO_API_BASE)POST https://litellm-domain/v1/chat/completionswith"model": "jalapeno/DeepSeek-V4-Flash"and messagesPOST /v1/responsesandPOST /v1/messagesRelevant issues
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
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 a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Shared setup:
export JALAPENO_API_KEY=...jalapeno/DeepSeek-V4-Flash34d94ff49d1f5893d5c9c5322374feeb9bf99237Before (
litellm_internal_staging/ merge base)/v1/chat/completionsmodel="jalapeno/DeepSeek-V4-Flash"and a simple user message/v1/responsesmodel="jalapeno/DeepSeek-V4-Flash"and a simple input/v1/messagesmodel="jalapeno/DeepSeek-V4-Flash"After (
34d94ff49d1f5893d5c9c5322374feeb9bf99237)/v1/chat/completionscurl -sS https://api.jalapeno-cloud.ai/v1/chat/completions -H "Authorization: Bearer $JALAPENO_API_KEY" -H "Content-Type: application/json" -d '{"model":"DeepSeek-V4-Flash","messages":[{"role":"user","content":"ping"}],"max_tokens":16}'/v1/responsescurl -sS https://api.jalapeno-cloud.ai/v1/responses -H "Authorization: Bearer $JALAPENO_API_KEY" -H "Content-Type: application/json" -d '{"model":"DeepSeek-V4-Flash","input":"ping","max_output_tokens":16}'/v1/messagescurl -sS https://api.jalapeno-cloud.ai/v1/messages -H "Authorization: Bearer $JALAPENO_API_KEY" -H "Content-Type: application/json" -H "anthropic-version: 2023-06-01" -d '{"model":"DeepSeek-V4-Flash","max_tokens":16,"messages":[{"role":"user","content":"ping"}]}'Local unit proof (not a substitute for the live section above):
uv run pytest tests/test_litellm/llms/openai_like/test_jalapeno_provider.py -v # 11 passed