mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix(rust): remove ignored transcription enablement
This commit is contained in:
parent
5c3d3c2d74
commit
7dc552383c
2 changed files with 2 additions and 3 deletions
|
|
@ -56,7 +56,6 @@ _STATE: Final = _RustTranscriptionState()
|
|||
|
||||
|
||||
def configure_rust_transcription(
|
||||
enabled: bool = True,
|
||||
*,
|
||||
transcription: RustTranscription | None | _Unset = _UNSET,
|
||||
atranscription: RustAtranscription | None | _Unset = _UNSET,
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class AsyncBridge:
|
|||
|
||||
def test_enabled_sync_bridge_receives_audio() -> None:
|
||||
bridge = SyncBridge()
|
||||
rust_bridge.configure_rust_transcription(True, transcription=bridge)
|
||||
rust_bridge.configure_rust_transcription(transcription=bridge)
|
||||
result = rust_bridge.transcription(
|
||||
model="mistral.voxtral-mini-3b-2507",
|
||||
audio={"data": "AQI=", "format": "wav", "filename": "audio.wav"},
|
||||
|
|
@ -61,7 +61,7 @@ def test_enabled_sync_bridge_receives_audio() -> None:
|
|||
|
||||
@pytest.mark.asyncio
|
||||
async def test_enabled_async_bridge() -> None:
|
||||
rust_bridge.configure_rust_transcription(True, atranscription=AsyncBridge())
|
||||
rust_bridge.configure_rust_transcription(atranscription=AsyncBridge())
|
||||
result = await rust_bridge.atranscription(
|
||||
model="mistral.voxtral-mini-3b-2507",
|
||||
audio={"data": "AQI=", "format": "wav", "filename": "audio.wav"},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue