@runappsai/sdk 0.7.4 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runappsai/sdk",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "JavaScript / TypeScript client for the RunApps AI Gateway",
5
5
  "license": "MIT",
6
6
  "author": "RunApps",
package/src/realtime.ts CHANGED
@@ -19,7 +19,9 @@ import type { Transport } from "./transport.js";
19
19
  * → response.cancel interrupt the reply
20
20
  * → session.close (close() sends it)
21
21
  * ← session.created
22
- * ← conversation.item.input_audio_transcription.delta / .completed (what the user said)
22
+ * ← conversation.item.input_audio_transcription.delta / .completed (what the user said:
23
+ * delta = only the new text, as OpenAI's Realtime API; transcript = the
24
+ * sentence so far; completed.transcript = the final sentence)
23
25
  * ← response.output_text.delta / .done (what the model says)
24
26
  * ← response.output_audio.delta {delta: base64 PCM16, 24 kHz mono by default}
25
27
  * ← response.done one turn finished, with token usage
@@ -36,8 +38,9 @@ import type { Transport } from "./transport.js";
36
38
  * `session.mode: "transcription"`, `session.hotwords` (array or
37
39
  * comma-separated string) favours words, and only the
38
40
  * `…input_audio_transcription.started / .delta / .completed` events come
39
- * back — `.delta` holds the sentence so far, `.completed` a finished
40
- * sentence with `start_ms` / `end_ms`. `commitAudio()` or `close()` ends
41
+ * back — `.delta` carries the new text in `delta` (append it) and the
42
+ * sentence so far, revisions included, in `transcript`; `.completed` a
43
+ * finished sentence (`transcript`) with `start_ms` / `end_ms`. `commitAudio()` or `close()` ends
41
44
  * the audio; the last sentence settles before the session closes.
42
45
  */
43
46