Hi all. Trying to switch our agents from using Dee...
# agents
a
Hi all. Trying to switch our agents from using Deepgram/Cartesia to Baseten for both TTS and STT but getting exceptions apparently due to failure status (400 and 504) form Baseten. Followed the instructions in the LiveKit docs for integrating Baseten to a tee but no luck. Anybody using Baseten with their agents that could possibly provide some insight?
j
which version are you using, can you share the output of
pip list | grep livekit
?
a
Copy code
livekit                                  1.0.11
livekit-agents                           1.1.6
livekit-api                              1.0.3
livekit-plugins-baseten                  1.1.6
livekit-plugins-cartesia                 1.1.6
livekit-plugins-deepgram                 1.1.6
livekit-plugins-noise-cancellation       0.2.5
livekit-plugins-openai                   1.1.6
livekit-plugins-silero                   1.1.6
livekit-plugins-turn-detector            1.1.6
livekit-protocol                         1.0.4
@jolly-air-155 Thanks for the reply. Above are the versions currently installed for this agent.
j
I see, can you share the full logs of baseten
a
Not much detail given in logs unfortunately. Full exception log from agent:
Copy code
2025-08-05 18:45:03,018 - WARNING livekit.agents - failed to synthesize speech, retrying in 0.1s {"tts": "livekit.plugins.baseten.tts.TTS", "attempt": 1, "streamed": false}
Traceback (most recent call last):
  File "/Users/chad/python/ai-agents/venv/lib/python3.13/site-packages/livekit/agents/tts/tts.py", line 206, in _main_task
    await self._run(output_emitter)
  File "/Users/chad/python/ai-agents/venv/lib/python3.13/site-packages/livekit/plugins/baseten/tts.py", line 180, in _run
    raise APIStatusError(
        message=e.message, status_code=e.status, request_id=None, body=None
    ) from None
livekit.agents._exceptions.APIStatusError: Bad Request (status_code=400, request_id=None, body=None, retryable=False)
Using model_endpoint
wss://model-<redacted>.api.baseten.co/environments/production/websocket