@chatpanel/gateway 0.154.2 → 0.154.4
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.
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatpanel/gateway",
|
|
3
|
-
"version": "0.154.
|
|
3
|
+
"version": "0.154.4",
|
|
4
4
|
"description": "Local privacy gateway — redacts PII out of OpenAI/Anthropic API traffic before it reaches a model, then restores it in the reply. Point opencode, codex, aider, Claude Code, etc. at it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@anthropic-ai/sandbox-runtime": "^0.0.77",
|
|
26
26
|
"@chatpanel/bridge": "^0.52.0",
|
|
27
|
-
"@chatpanel/events": "^0.
|
|
27
|
+
"@chatpanel/events": "^0.505.0",
|
|
28
28
|
"@chatpanel/pii": "^0.15.6",
|
|
29
29
|
"@huggingface/transformers": "^4.2.0",
|
|
30
30
|
"defuddle": "^0.19.4",
|
package/src/stt-remote.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{wavFromFloat32 as c,transcriptionRequest as T,requestInit as b,readTranscription as h,sttRemoteModel as p,languageFromService as E,STT_REMOTE_ADAPTERS as i,STT_REMOTE_PATHS as y}from"@chatpanel/events/speech-to-text-remote.js";function S(t,o=16e3){const r=c(t,o);return Buffer.from(r.buffer,r.byteOffset,r.byteLength)}function _(t,{fetchImpl:o,now:r=()=>performance.now()}={}){if(!t||!["remote","container"].includes(t.kind)||!/^https?:\/\//.test(t.url||""))throw new Error("stt-remote: a remote provider needs a url");const e=t.adapter||"openai";if(!i.includes(e))throw new Error(`stt-remote: unknown adapter ${e}`);return{provider:{kind:t.kind,url:t.url,adapter:e,model:p({...t,adapter:e})},async transcribe(u,{lang:l=null,langs:m=null,timeoutMs:f=3e4}={}){const w=r(),a=T({...t,adapter:e},c(u),{lang:l,langs:m}),n=await o(a.url,b(a,{signal:AbortSignal.timeout(f)}));if(!n.ok){const s=await n.text().catch(()=>"");throw new Error(`${e} transcription ${n.status}${s?`: ${s.slice(0,200)}`:""}`)}const d=await n.json().catch(()=>({}));return{...h(e,d),ms:Math.round(r()-w)}}}}export{i as STT_REMOTE_ADAPTERS,y as STT_REMOTE_PATHS,_ as createRemoteTranscriber,E as languageFromService,S as wavFromFloat32};
|
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="0.154.
|
|
1
|
+
const o="0.154.4";export{o as VERSION};
|