Skip to content

fix: add separate realtime_base_url defaulting to wss://api3.decart.ai#35

Merged
AdirAmsalem merged 1 commit intomainfrom
fix/realtime-base-url
Mar 5, 2026
Merged

fix: add separate realtime_base_url defaulting to wss://api3.decart.ai#35
AdirAmsalem merged 1 commit intomainfrom
fix/realtime-base-url

Conversation

@AdirAmsalem
Copy link
Contributor

Aligns Python SDK with JS SDK which uses separate base URLs for batch (https://api.decart.ai) and realtime (wss://api3.decart.ai).

Previously the Python SDK used the same base_url for both, converting https://api.decart.aiwss://api.decart.ai for WebSocket connections. The JS SDK correctly uses a dedicated realtimeBaseUrl defaulting to wss://api3.decart.ai.

Changes:

  • Add realtime_base_url param to DecartClient (default: wss://api3.decart.ai)
  • Update examples, playground, and tests to use client.realtime_base_url for realtime
  • Update lipsync client default from https://api.decart.ai to wss://api3.decart.ai

Backward compatible — existing code passing base_url for batch/process/queue is unaffected.

Aligns Python SDK with JS SDK which uses separate base URLs for
batch (https://api.decart.ai) and realtime (wss://api3.decart.ai).

Previously, the Python SDK used the same base_url for both, converting
https://api.decart.ai to wss://api.decart.ai for WebSocket connections.

Changes:
- Add realtime_base_url param to DecartClient (default: wss://api3.decart.ai)
- Update all examples and tests to use client.realtime_base_url for realtime
- Update lipsync client default to wss://api3.decart.ai
@AdirAmsalem AdirAmsalem merged commit eb96b78 into main Mar 5, 2026
8 checks passed
@AdirAmsalem AdirAmsalem deleted the fix/realtime-base-url branch March 5, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant