elevenlabs / elevenlabs-js

The official JavaScript (Node) library for ElevenLabs Text to Speech.
https://elevenlabs.io
MIT License
146 stars 15 forks source link

idea: Allow user to pass a `baseUrl` #102

Closed rdvo closed 1 week ago

rdvo commented 1 week ago

any chance you could allow this? I wrote a middleware and that would help me a lot if i could just swap my existing code that's using the elevenlabs js sdk to use my middleware url

I see its in the environments file, it pulls the api.us or api. ,and pipes in the domain there for requests

worth a shot

dsinghvi commented 1 week ago

@rdvo yup -- you can pass in the base url for the environment field

dsinghvi commented 1 week ago

environment: "your-url"

rdvo commented 1 week ago

thank you! didnt see it in docs, i see it in the code now tho