mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
* feat(gnani): add Prisma realtime transcription Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com> * fix(gnani): account for forwarded realtime transcription audio Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com> * fix(gnani): bound realtime audio appends to four seconds at the client rate * chore(deps): authorize the PSF-2.0 license of audioop-lts * fix(gnani): anti-alias resampled audio, honor drop_params, and bill each utterance Resampled 24, 44.1 and 48 kHz input now runs through an 8 kHz low-pass filter before ratecv, with the filter tail flushed on commit. Tuned server_vad, semantic_vad and prompt fail unless drop_params is on, which drops them and keeps server_vad. Prisma v2.5 sessions need one explicit language before the first append, matching REST. Each transcript bills Gnani's audio_duration_ms, with silence billed with the next transcript or at close. The README names the session limits and the missing price * fix(gnani): keep realtime sessions open on rejected events and hold real-time pacing A rejected client event now returns an error and the session keeps relaying, since Gnani sets up at connect time through headers Forwarding keeps a fixed 32 ms schedule, so sleep overshoot no longer adds up over a session, and a stall still never bursts Gnani speech_start and the transcript now emit input_audio_buffer.speech_started and speech_stopped with the transcript's item id turn_detection null or any detector other than server_vad is dropped under drop_params, and repeating the session rate no longer resets the filter * fix(gnani): refuse plaintext realtime bases and document commits that get no reply The realtime URL builder turned any api_base into a wss URL but kept a ws:// or http:// base as plaintext ws, which would send the Gnani key unencrypted. It now accepts only https:// and wss:// bases and always connects over wss The README now says a commit with no speech since the last transcript gets no reply, and that api_base must be https:// or wss:// * fix(gnani): refuse noise_reduction and include unless drop_params drops them The shared session parser now reports noise_reduction, in either layout, and include as unsupported session settings. Gnani refuses them with an error naming drop_params, and drops them with a warning when drop_params is on, as it already does for a transcription prompt and server_vad tuning. Soniox only logs them noise_reduction set to null and an empty include stay accepted, since they ask for nothing Gnani lacks * fix(gnani): keep realtime on when a deployment stores a transcription-only endpoint list * fix(gnani): gate realtime on the loaded cost map so deployments cannot switch it on or off * fix(gnani): open realtime for a model registered under its bare name * docs(gnani): keep the realtime usage guide on the docs site only The realtime README sends user docs to litellm-docs, where the Gnani provider page now covers the same setup, client example, session rules and limits, so the duplicate section here is removed and only the provider entry stays --------- Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com> Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| azure_client_usage_test.py | ||
| ban_constant_numbers.py | ||
| ban_copy_deepcopy_kwargs.py | ||
| bedrock_pricing.py | ||
| callback_manager_test.py | ||
| check_data_replace_usage.py | ||
| check_e2e_no_raw_requests.py | ||
| check_endpoint_coverage.py | ||
| check_fastuuid_usage.py | ||
| check_get_model_cost_key_performance.py | ||
| check_guardrail_apply_decorator.py | ||
| check_licenses.py | ||
| check_migrations_lock_timeout.py | ||
| check_migrations_no_data_rewrites.py | ||
| check_no_none_string_error_fields.py | ||
| check_no_publicly_known_master_key.py | ||
| check_prisma_binary_cache.py | ||
| check_provider_folders_documented.py | ||
| check_py310_typing_imports.py | ||
| check_router_constructor_stub.py | ||
| check_spanattributes_value_usage.py | ||
| check_telemetry_imports.py | ||
| check_unbounded_in_lists.py | ||
| check_unsafe_enterprise_import.py | ||
| check_workflow_job_name_collisions.py | ||
| check_workflow_startup_safety.py | ||
| code_qa_check_tests.py | ||
| dependency_license_cache.json | ||
| enforce_llms_folder_style.py | ||
| ensure_async_clients_test.py | ||
| info_log_check.py | ||
| liccheck.ini | ||
| license_cache.json | ||
| litellm_logging_code_coverage.py | ||
| log.txt | ||
| memory_test.py | ||
| prevent_key_leaks_in_exceptions.py | ||
| recursive_detector.py | ||
| router_code_coverage.py | ||
| router_enforce_line_length.py | ||
| router_litellm_globals_check.py | ||
| router_surface_allowlist.json | ||
| router_surface_check.py | ||
| test_aio_http_image_conversion.py | ||
| test_ban_set_verbose.py | ||
| test_chat_completion_imports.py | ||
| test_check_no_none_string_error_fields.py | ||
| test_check_no_publicly_known_master_key.py | ||
| test_e2e_idp_stack.py | ||
| test_e2e_junit_report.py | ||
| test_e2e_metadata.py | ||
| test_generate_provider_endpoints_support.py | ||
| test_merge_smoke.py | ||
| test_no_hardcoded_secrets.py | ||
| test_provider_cache.py | ||
| test_provider_replay_harness.py | ||
| test_proxy_types_import.py | ||
| test_router_strategy_async.py | ||
| test_run_parallel_checks.py | ||
| test_scan_bundled_crypto.py | ||
| test_unit_passed_gate.py | ||
| test_workflow_job_name_collisions.py | ||
| unbounded_in_baseline.txt | ||