-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Add AI Badgr as OpenAI-compatible JSON provider with tiered models #18108
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?
Conversation
Co-authored-by: miguelmanlyx <220451577+miguelmanlyx@users.noreply.github.com>
Add AI Badgr as OpenAI-compatible provider
Co-authored-by: miguelmanlyx <220451577+miguelmanlyx@users.noreply.github.com>
…-again Add AI Badgr as OpenAI-compatible provider
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
|
Weird i dont think tests have to do with me. |
Relevant issues
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-unitCI (LiteLLM team)
Link:
Link:
Links:
Type
🆕 New Feature
📖 Documentation
✅ Test
Changes
aibadgras an OpenAI-compatible JSON provider:litellm/llms/openai_like/providers.jsonwithbase_url = "https://aibadgr.com/api/v1",api_key_env = "AIBADGR_API_KEY",api_base_env = "AIBADGR_BASE_URL"aibadgrinconstants,LlmProviders, the OpenAI-compatible embeddings path, andprovider_endpoints_support.jsonget_llm_provider("aibadgr/<tier>")resolves correctly forbudget,basic,normal,premiumusing the JSON provider registry and env overridestests/test_litellm/llms/openai_like/test_json_providers.pyfor:aibadgrProviderConfigManagerreturning a JSON-based config withcustom_llm_provider == "aibadgr"docs/providers/aibadgr.mdand sidebar entry with:api_base/AIBADGR_BASE_URLconfiguration