ClojureScript
A new event of type "reelthyme.call_id" will be sent to WebRTC channels. This event is used to capture the call id of the session which can be used for sideband channels on the server.
Clojure
The connect! method no accepts a :call-id parameter that allows server side control of a client side conversation. If :call-id is given, :model is ignored. If using a :call-id, ensure that an :api-key is given using the :value of the client-secret generated for authenticating the client side channel.
BREAKING CHANGES
js->clj by default. Native JS objects are the default. js->clj can still be applied by providing an :xf-out transducer.:uri param, and instead supports :model and :call-id. :model defaults to gpt-realtime but can be changed to gpt-realtime-mini for example.ClojureScript Only
A :media-stream-track param is now supported. Supersedes :content-types if provided. Useful for workflows
requiring more nuanced permission flows - for example calling navigator.mediaDevices.getUserMedia() manually
and then connecting only after permission is granted.
(connect! client-secret-from-server {:media-stream-strack (custom-get-media-stream-track-some-how)})
Demo now includes a checkbox for testing manual provision of a MediaStreamTrack
BREAKING CHANGES
This release migrates to Open AI's GA realtime models. The schemas and payload structures have had significant changes. See Open AI's Beta to GA migration guide.
:modalities key is now :output_modalities and supports either ["audio"] or ["text"] (but no longer both)Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |