@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.
- package/dist/{chunk-YXK42SKC.js → chunk-76BZLCGT.js} +1 -1
- package/dist/chunk-7V2JKPIG.js +1 -0
- package/dist/chunk-T2LNHDPS.js +7 -0
- package/dist/chunk-TMQJY56F.js +4 -0
- package/dist/chunk-WEBOBE7Z.js +58 -0
- package/dist/chunk-X3GLH2HQ.js +1 -0
- package/dist/gemini-live.cjs +1 -1
- package/dist/gemini-live.d.cts +11 -0
- package/dist/gemini-live.d.ts +3 -0
- package/dist/gemini-live.js +1 -1
- package/dist/hosted/bin.cjs +36 -36
- package/dist/hosted/bin.js +1 -1
- package/dist/hosted/index.cjs +32 -32
- package/dist/hosted/index.d.cts +1 -1
- package/dist/hosted/index.d.ts +1 -1
- package/dist/hosted/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/pi-extension/index.cjs +6 -6
- package/dist/pi-extension/index.js +1 -1
- package/dist/pi-extension/standalone.cjs +52 -52
- package/dist/proxy/cli.cjs +46 -46
- package/dist/proxy/cli.js +1 -1
- package/dist/proxy/index.cjs +26 -26
- package/dist/proxy/index.d.cts +94 -15
- package/dist/proxy/index.d.ts +7 -3
- package/dist/proxy/index.js +1 -1
- package/dist/{responses-turn-CdhIre_a.d.ts → responses-turn-EwxfRJJg.d.ts} +15 -1
- package/dist/{responses-turn-BfdBbey8.d.cts → responses-turn-vMefRdgJ.d.cts} +112 -15
- package/package.json +2 -2
- package/dist/chunk-45FJ5GTP.js +0 -7
- package/dist/chunk-QTVTCMJU.js +0 -1
- package/dist/chunk-TDRZZGUK.js +0 -1
- package/dist/chunk-TPH77ZOW.js +0 -58
- package/dist/chunk-WCMX5VOF.js +0 -4
package/dist/gemini-live.d.cts
CHANGED
|
@@ -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;
|
package/dist/gemini-live.d.ts
CHANGED
|
@@ -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;
|
package/dist/gemini-live.js
CHANGED
|
@@ -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-
|
|
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};
|