Skip to content

Re-record livekit-agents 1.9 and huggingface-hub 2.5 latest cassettes (pins held in the 2026-11-30 dependency bump) #1211

Backlog

Description

The weekly dependency update keeps two latest pins back because their new releases change wire traffic, and re-recording the latest cassettes needs credentials we don't have locally. Held in #1205; the weekly job will keep bumping these until the cassettes are refreshed, so revert them on each weekly PR until this is closed.

livekit-agents 1.8.12 (wants 1.9.0; 1.8.13 was held the same way in #1162)

  • Re-record livekit_agents/cassettes/latest/inference-stt.json and inference-tts.json on the new pin. 1.8.13+ adds handoff_protocol to the inference session.create payloads: STT livekit/agents/inference/stt.py (_connect_ws, handoff_protocol: 2, plus handoff_probe when probing), TTS livekit/agents/inference/tts.py (_build_session_create_payload, handoff_protocol: 1). RealtimeCassette._match in py/src/braintrust/integrations/livekit_agents/test_realtime_helpers.py compares keys strictly, so 6 tests in test_cascade.py fail replay (test_native_streaming_stt_owns_model_child[*-inference], test_native_tts_observes_transformed_input[*]). Needs LIVEKIT_INFERENCE_API_KEY/LIVEKIT_INFERENCE_API_SECRET and BRAINTRUST_LIVEKIT_RECORD_REALTIME=1. The SDK code needs no change: all 38 patch targets still exist and bind.

huggingface-hub 2.4.0 (wants 2.5.0)

  • Re-record huggingface_hub/cassettes/latest/ chat cassettes on 2.5. 2.5 adds BaseConversationalTask.prepare_request (huggingface_hub/inference/_providers/_common.py): with an hf_ token, any named non-auto provider is sent through the auto-router as model="<model>:<provider>" on https://router.huggingface.co/v1/chat/completions, and the inferenceProviderMapping lookup is skipped. The committed cassettes record /cerebras/v1/chat/completions, so 11 chat tests (plus test_auto_huggingface_hub) fail replay. Needs a funded HF token (the local one returned 402 in October) and a provider HF still routes; the tests pin provider="cerebras". Also reword the comment at the top of test_huggingface_hub.py claiming a named provider keeps request URLs stable. Span provider/model come from kwargs and the client (_resolve_provider_and_model), so no SDK change is needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions