mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* feat(provider): add ResetData as a JSON-configured provider Add ResetData (https://docs.resetdata.ai), an Australian sovereign AI-inference platform with an OpenAI-compatible API, following the libertai/parasail/chutes JSON-configured provider pattern. - providers.json: base_url, api_key_env, api_base_env, supported_endpoints (/v1/chat/completions) - constants.py: openai_compatible_endpoints + openai_compatible_providers - LlmProviders.RESETDATA enum member - provider_endpoints_support.json + backup: chat_completions only (further endpoints to follow as they are validated) - model catalog (root + packaged backup, byte-identical): 6 chat models from the live /v1/models API with context windows, output caps, and capability flags. Pricing entries land in a follow-up once official USD rates are published. - Admin UI: provider logo + wiring + dashboard test - tests: tests/unit/llms/openai_like/test_resetdata_provider.py (9 tests) Model ids are three segments (resetdata/zai/glm-5.3) because ResetData model slugs are provider/model form; get_llm_provider strips only the first segment. Verified end-to-end against the live API through a local proxy (streaming and non-streaming). * fix(provider): remove retired resetdata/zai/glm-5.2 from model catalog ResetData retired zai/glm-5.2 on 2026-11-10, so the catalog entry pointed at a model the API now rejects. Removed the entry from both copies of the cost map, which must stay byte-identical. Flagged by Cursor Bugbot during PR review. * fix(provider): wire ResetData into wildcards and Add Model, and sync its models with the live catalog Register resetdata_models so resetdata/* wildcards and get_valid_models list the ResetData rows. Add ResetData to the Admin UI Add Model form. Drop zai/glm-5.2, which ResetData retired, and add deepseek/deepseek-v4.1-flash, which /v1/models now lists and which accepts images. Replace the structural tests with behavior tests for routing, the responses bridge, wildcard expansion, backup parity, and the Add Model entry * fix(openai_like): stop JSON-configured providers from borrowing the OpenAI key, regenerate endpoint support A chat call to a JSON-configured provider with no key of its own fell back to OPENAI_API_KEY and sent it to that provider's host. It now fails with an AuthenticationError naming the provider's key env, matching the embeddings path. A caller-supplied client keeps working. * fix(openai_like): apply the provider key check to HTTP handler clients and return the error as a value * fix(provider): keep JSON providers off the OpenAI key on every endpoint and price ResetData Transcription, speech and image generation now fail locally with 401 when a JSON-configured provider has no key of its own, instead of sending OPENAI_API_KEY to that provider. ResetData maps max_completion_tokens to max_tokens, its rows carry USD prices converted from its AUD rates, and the private deepseek-v4.1-flash row is removed. The CoralBricks integration test now expects 401 for the missing key * fix(provider): keep JSON providers off the OpenAI key on moderation and realtime client secrets Moderation now sends a JSON provider its own key (explicit or env) and fails locally without one. Realtime client secrets and calls fail locally too. The missing-key helper moves next to the JSON provider code so the realtime module can use it * fix(realtime): check the JSON provider key in the realtime callers that send it * test(json-providers): mark the new test bindings Final * fix(openai_like): give JSON providers a local 401 on text completions with no key, and drop unproven ResetData caching flags * fix(openai_like): accept a forwarded Authorization header in the JSON provider key check, and bill OpenAI-compatible transcription from its provider's price row A JSON-configured deployment that authenticates through an Authorization header in headers or extra_headers no longer gets a local 401 on chat, text completion, image and realtime setup, the routes that send that header upstream. Transcription, speech and moderation drop caller headers, so the check still refuses there. The OpenAI transcription handler now labels the response with the provider that served it, so Groq, Meta and ResetData transcription bill from their price rows instead of recording $0. ResetData's whisper-large-v3-turbo joins the cost map at 0.0003 AUD per minute and its endpoint support lists audio transcriptions. * feat(resetdata): add DeepSeek V4.1 Flash to the cost map ResetData's /models list, which its docs call authoritative, serves deepseek/deepseek-v4.1-flash with reasoning, image input and a cached-input price. Prices are ResetData's AUD rates at the same 1 AUD = 0.67566 USD rate as the other rows * revert(resetdata): drop the DeepSeek V4.1 Flash cost map row ResetData marks deepseek/deepseek-v4.1-flash access_level private for a limited tier, and its docs describe GET /api/v1/models as the list a given key can reach, not the public catalog. So the row stays out, as the PR's decisions say. This reverts |
||
|---|---|---|
| .. | ||
| chat | ||
| embedding | ||
| messages | ||
| responses | ||
| __init__.py | ||
| test_abliteration_provider.py | ||
| test_aiand_provider.py | ||
| test_assemblyai_provider.py | ||
| test_charity_engine.py | ||
| test_cognition_provider.py | ||
| test_coralbricks_provider.py | ||
| test_cortecs_provider.py | ||
| test_dynamic_config.py | ||
| test_empiriolabs_provider.py | ||
| test_hostinger_router_provider.py | ||
| test_inferenceapis_provider.py | ||
| test_json_loader.py | ||
| test_json_providers.py | ||
| test_kyma_provider.py | ||
| test_libertai_provider.py | ||
| test_meta_provider.py | ||
| test_model_info.py | ||
| test_openinfer_provider.py | ||
| test_pinstripes_provider.py | ||
| test_prism_provider.py | ||
| test_provider_affinity_forwarding.py | ||
| test_refuseless_provider.py | ||
| test_reka_provider.py | ||
| test_resetdata_provider.py | ||
| test_sarvam_provider.py | ||
| test_scx_ai_provider.py | ||
| test_streamlake_provider.py | ||
| test_tensormesh_provider.py | ||
| test_vispark_provider.py | ||
| test_wally_provider.py | ||
| test_xiaomi_mimo.py | ||
| test_zerogpu_provider.py | ||