Skip to content

Conversation

@mcowger
Copy link
Contributor

@mcowger mcowger commented Dec 23, 2025

Relevant issues

Pre-Submission checklist

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

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

CI (LiteLLM team)

CI status guideline:

  • 50-55 passing tests: main is stable with minor issues.
  • 45-49 passing tests: acceptable but needs attention
  • <= 40 passing tests: unstable; be careful with your merges and assess the risk.
  • Branch creation CI run
    Link:

  • CI run for the last commit
    Link:

  • Merge / cherry-pick CI run
    Links:

Type

🆕 New Feature
📖 Documentation

Changes

Users can now define custom OpenAI-compatible providers without modifying source code or waiting for PR merges. Two methods are supported:

  • Inline JSON via LITELLM_CUSTOM_PROVIDERS environment variable (no network calls)
  • URL-based via LITELLM_CUSTOM_PROVIDERS_URL (hosted JSON file)

Implementation

  • Core (litellm/llms/openai_like/json_loader.py)
  • Merge behavior (local + inline + URL, overwriting)

Documentation
Updated:

  • docs/my-website/docs/contributing/adding_openai_compatible_providers.md - usage guide for both methods
  • litellm/llms/openai_like/README.md - implementation details

@vercel
Copy link

vercel bot commented Dec 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
litellm Ready Ready Preview, Comment Dec 23, 2025 6:22am

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ mcowger
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

@mcowger mcowger changed the title Mcowger/add custom providers import Add custom providers import Dec 23, 2025
@mcowger
Copy link
Contributor Author

mcowger commented Dec 23, 2025

Not sure how to override the fact that copilot can't sign a CLA :)

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.

2 participants