-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Scope adding openai compatible providers via json #17448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Scope adding openai compatible providers via json #17448
Conversation
Co-authored-by: ishaan <[email protected]>
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
litellm/llms/openai_like/README.md
Outdated
| }, | ||
|
|
||
| // Optional: Exclude certain parameters | ||
| "excluded_params": ["functions"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do this? @ishaan-jaff - shouldn't it just send what's in supported?
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Co-authored-by: ishaan <[email protected]>
Title
Scope: Simplify OpenAI-Compatible Provider Onboarding via JSON Configuration
Relevant issues
N/A
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitType
🆕 New Feature
Changes
This PR introduces a comprehensive scoping document (
SCOPE_OPENAI_COMPATIBLE_JSON_CONFIG.md) outlining a plan to simplify the addition of OpenAI-compatible providers.Why:
The current process for integrating new OpenAI-compatible providers is complex, requiring modifications across 9+ Python files and significant boilerplate code. This creates a high barrier to entry for contributors and increases maintenance overhead.
What:
The proposed solution enables configuring simple OpenAI-compatible providers via a single JSON file (
litellm/openai_compatible_providers.json). The document details the JSON schema, a phased implementation plan (including a dynamic config loader and class generator), and a migration strategy for existing providers.Benefits:
Slack Thread