Skip to content

feat: add Wallaby (OpenAI-compatible provider) — kimi-k3 - #40862

Closed
Dawncoral wants to merge 11 commits into
BerriAI:mainfrom
Dawncoral:litellm_internal_staging
Closed

Dawncoral wants to merge 11 commits into
BerriAI:mainfrom
Dawncoral:litellm_internal_staging

Conversation

@Dawncoral

Copy link
Copy Markdown

What this adds

Wallaby as an OpenAI-like provider, with pricing for wallaby/kimi-k3.

Changes

  1. litellm/llms/openai_like/providers.json — add wallaby entry (base_url + WALLABY_API_KEY / WALLABY_API_BASE env vars)
  2. model_prices_and_context_window.json — add wallaby/kimi-k3 ($2.70 / $13.50 / $0.27 cache-read per 1M tokens; 1M context; supports reasoning, function calling, response schema, prompt caching)

Verification

Tested locally against the live endpoint with the providers.json entry applied:

  • completion(model="wallaby/kimi-k3", ...) non-streaming ✅
  • streaming ✅ (reasoning models stream reasoning_content then content)
  • explicit temperature=0.7, top_p=0.9 from the client ✅ (the serving stack fixes sampling params; the gateway normalizes them instead of erroring)
  • response_format={"type": "json_object"} ✅

Happy to provide a test API key for maintainer verification — just say the word.

@Dawncoral
Dawncoral requested a review from a team September 12, 2026 16:28
@CLAassistant

CLAassistant commented Sep 12, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@codspeed

codspeed Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing Dawncoral:litellm_internal_staging (c53b3c9) with main (22b36cb)

Open in CodSpeed

@greptile-apps

greptile-apps Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds Wallaby as a declarative OpenAI-compatible provider and registers pricing, limits, and capabilities for wallaby/kimi-k3

  • Adds Wallaby credential and endpoint configuration
  • Adds Kimi K3 pricing, context limits, caching, reasoning, tool, and schema metadata
  • Requires provider-list alignment, bundled cost-map synchronization, and focused regression coverage before merging

Confidence Score: 3/5

The PR is not safe to merge until Wallaby supports advertised tool calls and the bundled cost map is synchronized

Wallaby tool calls are rejected before reaching the provider, while CLI and offline deployments omit its pricing because the bundled cost map was not updated

Files Needing Attention: litellm/llms/openai_like/providers.json, model_prices_and_context_window.json

Important Files Changed

Filename Overview
litellm/llms/openai_like/providers.json Adds Wallaby configuration, but omits compatibility-list registration needed for tool calls and lacks required focused tests
model_prices_and_context_window.json Adds Wallaby Kimi K3 metadata without synchronizing the bundled backup cost map

Reviews (1): Last reviewed commit: "Add wallaby provider and kimi-k3 pricing" | Re-trigger Greptile

Comment on lines +226 to +229
"wallaby": {
"base_url": "https://api.wallabytoken.com/v1",
"api_key_env": "WALLABY_API_KEY",
"api_base_env": "WALLABY_API_BASE"

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 Wallaby Tool Calls Fail

Wallaby is absent from openai_compatible_providers, so requests with tools fail before reaching the provider despite advertised function-calling support

Knowledge Base Used: Provider adapters and capabilities

Comment on lines +65067 to 65082
"wallaby/kimi-k3": {
"cache_read_input_token_cost": 2.7e-07,
"input_cost_per_token": 2.7e-06,
"litellm_provider": "wallaby",
"max_input_tokens": 1048576,
"max_output_tokens": 131072,
"max_tokens": 131072,
"mode": "chat",
"output_cost_per_token": 1.35e-05,
"source": "https://wallabytoken.com/pricing.json",
"supports_function_calling": true,
"supports_prompt_caching": true,
"supports_reasoning": true,
"supports_response_schema": true,
"supports_tool_choice": true
}

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 Bundled Pricing Is Missing

The backup cost map lacks Wallaby, so CLI and offline loads omit its pricing, and the cost-map guard fails

Knowledge Base Used: Provider adapters and capabilities

Comment on lines +226 to +229
"wallaby": {
"base_url": "https://api.wallabytoken.com/v1",
"api_key_env": "WALLABY_API_KEY",
"api_base_env": "WALLABY_API_BASE"

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 Provider Tests Are Missing

This new provider has no focused registry or routing test, violating the repository requirement for meaningful new-feature tests

Context Used: CLAUDE.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@codecov

codecov Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Dawncoral

Copy link
Copy Markdown
Author

Thanks for the review! Both P1s addressed:

  • Added wallaby to openai_compatible_providers (fixes tool-call routing)
  • Added wallaby/kimi-k3 to the backup cost map

Re: tests — this is a declarative JSON-configured provider following the same
pattern as recent additions (no provider-specific code paths); happy to add a
focused registry test if you'd like one anyway. CLA signed.

@Dawncoral Dawncoral changed the title Add Wallaby (OpenAI-compatible provider) — kimi-k3 feat: add Wallaby (OpenAI-compatible provider) — kimi-k3 Sep 12, 2026
@yuneng-berri
yuneng-berri deleted the branch BerriAI:main September 13, 2026 04:52
@yuneng-berri yuneng-berri reopened this Sep 13, 2026
@devin-ai-integration
devin-ai-integration Bot changed the base branch from litellm_internal_staging to main September 23, 2026 14:35
- provider registry, pricing (root + backup cost maps, byte-synced)
- openai_compatible_endpoints base URL for bare-URL autodetect
- LlmProviders.WALLABY enum, dashboard provider_create_fields entry
- provider_endpoints_support registration (root + backup)
- tests: tests/unit/llms/openai_like/test_wallaby_provider.py (9 tests)
@Dawncoral
Dawncoral force-pushed the litellm_internal_staging branch from 2d0fac0 to c53b3c9 Compare September 27, 2026 17:37
@Dawncoral

Copy link
Copy Markdown
Author

Synced to latest main (resolves the merge conflicts) and added the focused
provider test requested in review:

  • tests/unit/llms/openai_like/test_wallaby_provider.py — covers registry
    config, provider resolution + URL autodetection, root/backup cost-map
    sync, and dashboard form registration (9 tests)
  • Also added the base URL to openai_compatible_endpoints so bare-base-URL
    calls route correctly

Ready for review whenever you have a moment. Thanks for maintaining litellm!

sync: reapply wallaby cost map + endpoints on latest main
sync: reapply wallaby constants/enum/backups on latest main
sync: reapply wallaby providers.json on latest main
sync: reapply wallaby provider create fields on latest main
sync: reapply wallaby enum on latest main
chore: remove misplaced utils.py
sync: reapply wallaby enum on latest main
fix: restore litellm/utils.py to match main
chore: remove misnamed _utils.py
fix: restore litellm/utils.py to match main
@Dawncoral Dawncoral closed this by deleting the head repository Sep 30, 2026
@Dawncoral

Copy link
Copy Markdown
Author

Closing in favor of #43836 — same content, rebased onto latest main as a clean branch. The recurring cost-map conflicts couldn't be cleared through web uploads (they can't create merge commits). All review feedback from this thread is incorporated in the new PR. Thanks!

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