Skip to content

feat: add Jalapeno Cloud as an OpenAI-compatible provider - #40101

Open
Hidoikoto wants to merge 2 commits into
BerriAI:mainfrom
Hidoikoto:feat/add-jalapeno-provider
Open

Hidoikoto wants to merge 2 commits into
BerriAI:mainfrom
Hidoikoto:feat/add-jalapeno-provider

Conversation

@Hidoikoto

@Hidoikoto Hidoikoto commented Sep 7, 2026 •

Copy link
Copy Markdown

Register jalapeno with chat/completions, responses, and messages support, including model pricing from the public marketplace catalog.

TLDR

Problem this solves:

  • Jalapeno Cloud is not a built-in LiteLLM provider
  • Apps must manually set api_base for every call
  • Cost tracking has no Jalapeno model prices

How it solves it:

  • Adds jalapeno/ as an OpenAI-compatible provider
  • Supports chat completions, responses, and messages
  • Ships marketplace pricing for 20 Jalapeno models

User 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

  1. They set a custom OpenAI-compatible route to https://api.jalapeno-cloud.ai/v1 with their Jalapeno API key
  2. They send POST https://litellm-domain/v1/chat/completions with a model like openai/DeepSeek-V4-Flash (or another custom prefix) and messages
  3. The call may work only if they configured api_base correctly; jalapeno/... is not recognized as a first-class provider
  4. Spend / model info for Jalapeno models is missing or wrong in logs and cost views

After: the same developer uses the built-in jalapeno/ provider with catalog pricing

  1. They set JALAPENO_API_KEY (optional: JALAPENO_API_BASE)
  2. They send POST https://litellm-domain/v1/chat/completions with "model": "jalapeno/DeepSeek-V4-Flash" and messages
  3. LiteLLM routes to Jalapeno and returns a normal chat completion
  4. The same model works on POST /v1/responses and POST /v1/messages
  5. Logs / spend use the catalog prices from https://www.jalapeno-cloud.ai/models

Relevant issues

Linear ticket

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. 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
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • 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)

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:

  • Env: export JALAPENO_API_KEY=...
  • Model: jalapeno/DeepSeek-V4-Flash
  • Tip commit for After: 34d94ff49d1f5893d5c9c5322374feeb9bf99237

Before (litellm_internal_staging / merge base)

/v1/chat/completions

  1. Call LiteLLM / SDK with model="jalapeno/DeepSeek-V4-Flash" and a simple user message
  2. Observe: provider is not registered / request fails as an unknown or unsupported provider

/v1/responses

  1. Call with model="jalapeno/DeepSeek-V4-Flash" and a simple input
  2. Observe: Jalapeno responses route is unavailable

/v1/messages

  1. Call Anthropic-style messages with model="jalapeno/DeepSeek-V4-Flash"
  2. Observe: Jalapeno messages route is unavailable

After (34d94ff49d1f5893d5c9c5322374feeb9bf99237)

/v1/chat/completions

  1. curl -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}'
  2. 200 response

/v1/responses

  1. curl -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}'
  2. 200 response

/v1/messages

  1. curl -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"}]}'
  2. 200 response

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

@Hidoikoto
Hidoikoto requested a review from a team September 7, 2026 10:19
@CLAassistant

CLAassistant commented Sep 7, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@greptile-apps

greptile-apps Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds Jalapeno Cloud as a declarative OpenAI-compatible provider

  • Registers provider identity, credentials, base URL inference, and chat, Responses, and Messages capabilities
  • Adds pricing and capability metadata for 20 marketplace models
  • Synchronizes the packaged endpoint matrix and expands provider configuration tests

Confidence Score: 4/5

The 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

Important Files Changed

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

Comment on lines +3038 to 3054
"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
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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

Comment thread litellm/llms/openai_like/providers.json Resolved
Comment on lines +38 to +66
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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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

@codspeed

codspeed Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing Hidoikoto:feat/add-jalapeno-provider (053c875) with litellm_internal_staging (02522a5)1

Open in CodSpeed

Footnotes

  1. No successful run was found on litellm_internal_staging (168a005) during the generation of this report, so 02522a5 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

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>
@Hidoikoto
Hidoikoto force-pushed the feat/add-jalapeno-provider branch from f12f7e6 to 34d94ff Compare September 7, 2026 11:02
@Hidoikoto

Copy link
Copy Markdown
Author

@greptileai

Comment thread litellm/constants.py Resolved
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

3 participants