@urun-sh/openai 0.6.0 → 0.6.1

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.
@@ -167,6 +167,16 @@ interface ServeEnvelope {
167
167
  * engine's catalog-configured default voice, today's behavior.
168
168
  */
169
169
  voice?: string;
170
+ /**
171
+ * The transcription lane's per-request LANGUAGE hint (ENG-332, additive
172
+ * like `voice`): the ISO code a `stt`-task engine transcribes under
173
+ * (e.g. "en"). The serve runtime validates it against the transcribe
174
+ * engine's declared `served_languages` and fails LOUD
175
+ * (`invalid_request_error`) when the backend cannot honor it — a dropped
176
+ * hint is a politely ignored knob, so the proxy never drops it. Absent ->
177
+ * key absent: the engine's own default language applies.
178
+ */
179
+ language?: string;
170
180
  }
171
181
  /** Realtime: a response.create + the accumulated conversation turns → envelope. */
172
182
  declare function responseCreateToEnvelope(ev: {
@@ -191,6 +201,7 @@ declare function responsesCreateToEnvelope(params: {
191
201
  chat_template_kwargs?: Record<string, unknown>;
192
202
  response_format?: unknown;
193
203
  voice?: string;
204
+ language?: string;
194
205
  /** Per-request system instructions (the realtime standing schema's only path to the serve envelope). */
195
206
  instructions?: string;
196
207
  }, requestId: string, consumerId: string): ServeEnvelope;
@@ -79,6 +79,8 @@ interface ServeEnvelope {
79
79
  session_tag?: string;
80
80
 
81
81
  voice?: string;
82
+
83
+ language?: string;
82
84
  }
83
85
 
84
86
  declare function responseCreateToEnvelope(ev: {
@@ -103,6 +105,7 @@ declare function responsesCreateToEnvelope(params: {
103
105
  chat_template_kwargs?: Record<string, unknown>;
104
106
  response_format?: unknown;
105
107
  voice?: string;
108
+ language?: string;
106
109
 
107
110
  instructions?: string;
108
111
  }, requestId: string, consumerId: string): ServeEnvelope;
@@ -1 +1 @@
1
- import{a as c,b as C,c as L,d as M,e as R,f as D,g as f,h as N,i as v,j as g,k as x,l as k,m as y,n as G,o as B,p as F,q as P,r as H,s as W,t as b,u as w,v as K,w as h,x as Q}from"./chunk-3JWYIKHM.js";import{a as i,b as s,c as O,d,e as a,f as E,g as _,h as p,i as u,j as A,k as S,l as I,m as T,n as l,o as m,p as U,q as V}from"./chunk-6M5JK4YC.js";import{a as o,b as t,d as n,e as r}from"./chunk-QTVTCMJU.js";import{c as e}from"./chunk-YSFSRI3D.js";e();export{s as AudioBridge,C as CLOSE_PROTOCOL,R as CLOSE_SESSION_GONE,L as CLOSE_UNKNOWN_MODEL,M as CLOSE_UPSTREAM,B as GEMINI_AUDIO_IN_RATE,P as GEMINI_AUDIO_OUT_MIME,F as GEMINI_AUDIO_OUT_RATE,c as GEMINI_LIVE_PATH,D as GeminiLiveError,i as NATIVE_AUDIO_SAMPLE_RATE,H as OUTBOUND_AUDIO_FLUSH_B64,d as RT_VIDEO_IN_STREAM,u as RT_VIDEO_OUT_STREAM,r as SdkTransport,a as VIDEO_FRAME_MESSAGE_BUDGET,S as VIDEO_OUT_DEFAULT_CODEC,A as VIDEO_OUT_FRAMING,N as VIDEO_OUT_SETUP_KEY,m as VIDEO_OUT_WS_FRAMING,V as consumeVideoOut,n as decodeResponsesLane,T as decodeVideoOutRecord,O as enableSessionAudio,E as enableSessionVideo,I as encodeVideoOutRecord,y as goAwayMsg,l as negotiateSessionVideoOutQuic,p as nodeAudioBackend,U as openSessionVideoOutLane,f as parseClientMessage,W as resamplePcm16,o as responseCreateToEnvelope,t as responsesCreateToEnvelope,h as serverContentOfAudio,K as serverContentOfDelta,k as sessionResumptionUpdateMsg,G as translateClientContent,b as translateRealtimeInput,x as translateSetup,w as translateToolResponse,Q as turnEndOfCompleted,v as videoOutAck,g as videoOutChunkMsg,_ as weriftAudioBackend};
1
+ import{a as c,b as C,c as L,d as M,e as R,f as D,g as f,h as N,i as v,j as g,k as x,l as k,m as y,n as G,o as B,p as F,q as P,r as H,s as W,t as b,u as w,v as K,w as h,x as Q}from"./chunk-3JWYIKHM.js";import{a as i,b as s,c as O,d,e as a,f as E,g as _,h as p,i as u,j as A,k as S,l as I,m as T,n as l,o as m,p as U,q as V}from"./chunk-6M5JK4YC.js";import{a as o,b as t,d as n,e as r}from"./chunk-7V2JKPIG.js";import{c as e}from"./chunk-YSFSRI3D.js";e();export{s as AudioBridge,C as CLOSE_PROTOCOL,R as CLOSE_SESSION_GONE,L as CLOSE_UNKNOWN_MODEL,M as CLOSE_UPSTREAM,B as GEMINI_AUDIO_IN_RATE,P as GEMINI_AUDIO_OUT_MIME,F as GEMINI_AUDIO_OUT_RATE,c as GEMINI_LIVE_PATH,D as GeminiLiveError,i as NATIVE_AUDIO_SAMPLE_RATE,H as OUTBOUND_AUDIO_FLUSH_B64,d as RT_VIDEO_IN_STREAM,u as RT_VIDEO_OUT_STREAM,r as SdkTransport,a as VIDEO_FRAME_MESSAGE_BUDGET,S as VIDEO_OUT_DEFAULT_CODEC,A as VIDEO_OUT_FRAMING,N as VIDEO_OUT_SETUP_KEY,m as VIDEO_OUT_WS_FRAMING,V as consumeVideoOut,n as decodeResponsesLane,T as decodeVideoOutRecord,O as enableSessionAudio,E as enableSessionVideo,I as encodeVideoOutRecord,y as goAwayMsg,l as negotiateSessionVideoOutQuic,p as nodeAudioBackend,U as openSessionVideoOutLane,f as parseClientMessage,W as resamplePcm16,o as responseCreateToEnvelope,t as responsesCreateToEnvelope,h as serverContentOfAudio,K as serverContentOfDelta,k as sessionResumptionUpdateMsg,G as translateClientContent,b as translateRealtimeInput,x as translateSetup,w as translateToolResponse,Q as turnEndOfCompleted,v as videoOutAck,g as videoOutChunkMsg,_ as weriftAudioBackend};