PageSourceSearch

https://app.outlier.ai/_next/static/chunks/14207.4b2ac2572a471e1b.js

js outlier.ai collected 2026-09-24 17:40:28 UTC 12,682 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14207],{737384:function(e,t,r){r.d(t,{F:function(){return l}});var n=r(863031),s=function(e,t,r){if(e&&"reportValidity"in e){var s=(0,n.U2)(r,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},i=function(e,t){var r=function(r){var n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?s(n.ref,r,e):n.refs&&n.refs.forEach(function(t){return s(t,r,e)})};for(var n in t.fields)r(n)},o=function(e,t){t.shouldUseNativeValidation&&i(e,t);var r={};for(var s in e){var o=(0,n.U2)(t.fields,s),u=Object.assign(e[s]||{},{ref:o&&o.ref});if(a(t.names||Object.keys(e),s)){var l=Object.assign({},(0,n.U2)(r,s));(0,n.t8)(l,"root",u),(0,n.t8)(r,s,l)}else(0,n.t8)(r,s,u)}return r},a=function(e,t){return e.some(function(e){return e.startsWith(t+".")})},u=function(e,t){for(var r={};e.length;){var s=e[0],i=s.code,o=s.message,a=s.path.join(".");if(!r[a]){if("unionErrors"in s){var u=s.unionErrors[0].errors[0];r[a]={message:u.message,type:u.code}}else r[a]={message:o,type:i}}if("unionErrors"in s&&s.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var l=r[a].types,c=l&&l[s.code];r[a]=(0,n.KN)(a,t,r,i,c?[].concat(c,s.message):s.message)}e.shift()}return r},l=function(e,t,r){return void 0===r&&(r={}),function(n,s,a){try{return Promise.resolve(function(s,o){try{var u=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](n,t)).then(function(e){return a.shouldUseNativeValidation&&i({},a),{errors:{},values:r.raw?n:e}})}catch(e){return o(e)}return u&&u.then?u.then(void 0,o):u}(0,function(e){if(null!=e.errors)return{values:{},errors:o(u(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e}))}catch(e){return Promise.reject(e)}}}},665850:function(e,t,r){r.d(t,{A:function(){return a},C:function(){return x},D:function(){return c},I:function(){return l},K:function(){return N},M:function(){return R},N:function(){return S},P:function(){return _},R:function(){return I},S:function(){return o},T:function(){return g},U:function(){return D},V:function(){return n},a:function(){return i},b:function(){return s},c:function(){return p},d:function(){return m},e:function(){return f},f:function(){return M},g:function(){return b},h:function(){return F},i:function(){return E},j:function(){return T},k:function(){return v},l:function(){return j},m:function(){return h},n:function(){return w},o:function(){return d},p:function(){return k},q:function(){return P},r:function(){return u},s:function(){return y}});let n="wss://shortwave.facebook.com/vllm_proxy",s=8e3,i="/v1/realtime",o=24e3,a=80,u=1920,l="whisper-1",c=.7,d="alloy",m=38400,p=5e3,f=5e3,x=3e4,h=9e4,v=2e3,j=8e3,b=.75,y=18e5,g=12e4,N=5e3,w=1e4,_=750,S=1e3,k=1011,P=1006,M=new Set(["response.output_audio.delta","response.audio.delta"]),I=new Set(["response.done","response.completed"]),T=new Set(["response.output_audio.done","response.audio.done"]),D=new Set(["conversation.item.input_audio_transcription.delta"]),F=new Set(["conversation.item.input_audio_transcription.completed"]),R=new Set(["response.output_audio_transcript.delta"]),E=new Set(["response.output_audio_transcript.done"])},714207:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var n=r(128683),s=r(737384),i=r(747637),o=r(942871),a=r(863031),u=r(876477),l=r(177448),c=r(699188),d=r(999367),m=r(665850);let p=u.Ry({title:u.Z_().optional().describe("Shown to taskers in sidebar"),subtitle:u.Z_().optional().describe("Shown to taskers in sidebar and above step content"),apiKey:u.Z_().optional().describe("API key for the vLLM proxy WebSocket handshake"),smcTier:u.Z_().optional().describe("SMC tier (model) routed to in the vLLM proxy handshake. Empty when unset (there is no built-in default)."),instructions:u.Z_().optional().describe("System prompt sent to the model. Leave empty to send no system prompt (there is no built-in default)."),maxResponseOutputTokens:u.Z_().optional().describe("Caps the model reply length (max_response_output_tokens). Leave empty for the server default; only a positive integer is sent."),temperature:u.Z_().optional().describe("Sampling temperature (0–1). Defaults to 0.7; the model often produces broken audio responses at 0."),maxSessionDurationMinutes:u.Z_().optional().describe("Max session duration in minutes, used to time the wrap-up warning. Leave empty (or set 0 / a negative value) for the default (30 min).")}),f=o.memo(function(e){var t,r,u,f,x,h,v,j,b,y,g;let{data:N,onUpdate:w}=e,_=(0,a.cI)({resolver:(0,s.F)(p),defaultValues:{title:N.stepParams.title||"",subtitle:N.stepParams.subtitle||"",apiKey:(null===(t=N.stepParams.params)||void 0===t?void 0:t.apiKey)||"",smcTier:(null===(r=N.stepParams.params)||void 0===r?void 0:r.smcTier)||"",instructions:(null===(u=N.stepParams.params)||void 0===u?void 0:u.instructions)||"",maxResponseOutputTokens:(null===(x=N.stepParams.params)||void 0===x?void 0:null===(f=x.maxResponseOutputTokens)||void 0===f?void 0:f.toString())||"",temperature:null!==(y=null===(v=N.stepParams.params)||void 0===v?void 0:null===(h=v.temperature)||void 0===h?void 0:h.toString())&&void 0!==y?y:m.D.toString(),maxSessionDurationMinutes:(null===(b=N.stepParams.params)||void 0===b?void 0:null===(j=b.maxSessionDurationMinutes)||void 0===j?void 0:j.toString())||""}});(0,o.useEffect)(function(){let e=_.watch(()=>{let e=_.getValues();w(t=>(0,i.Uy)(t,t=>{var r,n,s,i;t.stepParams.title=e.title,t.stepParams.subtitle=e.subtitle,t.stepParams.params||(t.stepParams.params={}),t.stepParams.params.apiKey=e.apiKey||void 0,t.stepParams.params.smcTier=e.smcTier||void 0,t.stepParams.params.instructions=e.instructions||void 0;let o=Number(e.maxResponseOutputTokens);t.stepParams.params.maxResponseOutputTokens=Number.isInteger(o)&&o>0?o:void 0;let a=null!==(s=null===(r=e.temperature)||void 0===r?void 0:r.trim())&&void 0!==s?s:"",u=Number(a);t.stepParams.params.temperature=""!==a&&Number.isFinite(u)&&u>=0&&u<=1?u:void 0;let l=null!==(i=null===(n=e.maxSessionDurationMinutes)||void 0===n?void 0:n.trim())&&void 0!==i?i:"",c=Number(l);t.stepParams.params.maxSessionDurationMinutes=""!==l&&Number.isInteger(c)?c:void 0}))});return()=>e.unsubscribe()},[_,w]);let S=_.watch("temperature"),k=(null!==(g=null==S?void 0:S.trim())&&void 0!==g?g:"")!==""&&0===Number(S);return(0,n.jsx)(c.F,{..._,children:(0,n.jsxs)("form",{onSubmit:e=>e.preventDefault(),className:"flex flex-col gap-4",children:[(0,n.jsxs)("p",{className:"text-sm text-muted-contrast",children:["Push-to-talk audio conversation with a realtime speech model. The contributor speaks one turn at a time; after they stop, the model replies with audio before the next turn unlocks. It connects over the vLLM proxy on the shortwave host (",(0,n.jsx)("code",{className:"break-all",children:m.V}),")."]}),(0,n.jsx)(c.a,{control:_.control,name:"title",render:e=>{let{field:t}=e;return(0,n.jsxs)(c.b,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(c.c,{children:"Title"}),!!p.shape.title.description&&(0,n.jsx)(l.al,{hint:p.shape.title.description})]}),(0,n.jsx)(c.d,{children:(0,n.jsx)(d.d7,{placeholder:"Enter title",...t})}),(0,n.jsx)(c.e,{className:"text-error-text"})]})}}),(0,n.jsx)(c.a,{control:_.control,name:"subtitle",render:e=>{let{field:t}=e;return(0,n.jsxs)(c.b,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(c.c,{children:"Description"}),!!p.shape.subtitle.description&&(0,n.jsx)(l.al,{hint:p.shape.subtitle.description})]}),(0,n.jsx)(c.d,{children:(0,n.jsx)(d.cu,{placeholder:"Enter description",...t})}),(0,n.jsx)(c.e,{className:"text-error-text"})]})}}),(0,n.jsx)(c.a,{control:_.control,name:"apiKey",render:e=>{let{field:t}=e;return(0,n.jsxs)(c.b,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(c.c,{children:"API key"}),!!p.shape.apiKey.description&&(0,n.jsx)(l.al,{hint:p.shape.apiKey.description})]}),(0,n.jsx)(c.d,{children:(0,n.jsx)(d.d7,{type:"password",autoComplete:"off",placeholder:"Enter API key",...t})}),(0,n.jsx)(c.e,{className:"text-error-text"})]})}}),(0,n.jsx)(c.a,{control:_.control,name:"smcTier",render:e=>{let{field:t}=e;return(0,n.jsxs)(c.b,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(c.c,{children:"SMC tier"}),!!p.shape.smcTier.description&&(0,n.jsx)(l.al,{hint:p.shape.smcTier.description})]}),(0,n.jsx)(c.d,{children:(0,n.jsx)(d.d7,{placeholder:"e.g. smc.rift_psd_s2s_demo_…",...t})}),(0,n.jsx)(c.e,{className:"text-error-text"})]})}}),(0,n.jsx)(c.a,{control:_.control,name:"instructions",render:e=>{let{field:t}=e;return(0,n.jsxs)(c.b,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(c.c,{children:"System prompt"}),!!p.shape.instructions.description&&(0,n.jsx)(l.al,{hint:p.shape.instructions.description})]}),(0,n.jsx)(c.d,{children:(0,n.jsx)(d.cu,{placeholder:"Leave empty for no system prompt",...t})}),(0,n.jsx)(c.e,{className:"text-error-text"})]})}}),(0,n.jsx)(c.a,{control:_.control,name:"maxResponseOutputTokens",render:e=>{let{field:t}=e;return(0,n.jsxs)(c.b,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(c.c,{children:"Max response output tokens"}),!!p.shape.maxResponseOutputTokens.description&&(0,n.jsx)(l.al,{hint:p.shape.maxResponseOutputTokens.description})]}),(0,n.jsx)(c.d,{children:(0,n.jsx)(d.d7,{type:"number",min:1,step:1,placeholder:"e.g. 8192 (empty for server default)",...t})}),(0,n.jsx)(c.e,{className:"text-error-text"})]})}}),(0,n.jsx)(c.a,{control:_.control,name:"temperature",render:e=>{let{field:t}=e;return(0,n.jsxs)(c.b,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(c.c,{children:"Temperature"}),!!p.shape.temperature.description&&(0,n.jsx)(l.al,{hint:p.shape.temperature.description})]}),(0,n.jsx)(c.d,{children:(0,n.jsx)(d.d7,{type:"number",min:0,max:1,step:.1,placeholder:"e.g. ".concat(m.D," (empty for default)"),...t})}),!!k&&(0,n.jsxs)("p",{className:"text-xs text-warning-text","data-testid":"temperature-zero-warning",children:["The model often produces broken audio responses at temperature 0. Consider a higher value (default ",m.D,")."]}),(0,n.jsx)(c.e,{className:"text-error-text"})]})}}),(0,n.jsx)(c.a,{control:_.control,name:"maxSessionDurationMinutes",render:e=>{let{field:t}=e;return(0,n.jsxs)(c.b,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(c.c,{children:"Max session duration (minutes)"}),!!p.shape.maxSessionDurationMinutes.description&&(0,n.jsx)(l.al,{hint:p.shape.maxSessionDurationMinutes.description})]}),(0,n.jsx)(c.d,{children:(0,n.jsx)(d.d7,{type:"number",step:1,placeholder:"e.g. 30 (empty / 0 for default)",...t})}),(0,n.jsx)(c.e,{className:"text-error-text"})]})}})]})})})},699188:function(e,t,r){r.d(t,{F:function(){return l},a:function(){return d},b:function(){return f},c:function(){return x},d:function(){return h},e:function(){return j},f:function(){return v}});var n=r(128683),s=r(876255),i=r(942871),o=r(863031),a=r(396627),u=r(999367);let l=o.RV,c=i.createContext({}),d=e=>{let{...t}=e;return(0,n.jsx)(c.Provider,{value:{name:t.name},children:(0,n.jsx)(o.Qr,{...t})})},m=()=>{let e=i.useContext(c),t=i.useContext(p),{getFieldState:r,formState:n}=(0,o.Gc)(),s=r(e.name,n);if(!e)throw Error("useFormField should be used within <FormField>");let{id:a}=t;return{id:a,name:e.name,formItemId:"".concat(a,"-form-item"),formDescriptionId:"".concat(a,"-form-item-description"),formMessageId:"".concat(a,"-form-item-message"),...s}},p=i.createContext({}),f=i.forwardRef((e,t)=>
1{let{className:r,...s}=e,i=(0,a.Z)();return(0,n.jsx)(p.Provider,{value:{id:i},children:(0,n.jsx)("div",{ref:t,className:(0,u._)("space-y-2",r),...s})})});f.displayName="FormItem";let x=i.forwardRef((e,t)=>{let{className:r,...s}=e,{error:i,formItemId:o}=m();return(0,n.jsx)(u.bo,{ref:t,className:(0,u._)(i&&"text-destructive",r),htmlFor:o,...s})});x.displayName="FormLabel";let h=i.forwardRef((e,t)=>{let{...r}=e,{error:i,formItemId:o,formDescriptionId:a,formMessageId:u}=m();return(0,n.jsx)(s.g7,{ref:t,id:o,"aria-describedby":i?"".concat(a," ").concat(u):"".concat(a),"aria-invalid":!!i,...r})});h.displayName="FormControl";let v=i.forwardRef((e,t)=>{let{className:r,...s}=e,{formDescriptionId:i}=m();return(0,n.jsx)("p",{ref:t,id:i,className:(0,u._)("text-[0.8rem] text-muted-contrast",r),...s})});v.displayName="FormDescription";let j=i.forwardRef((e,t)=>{let{className:r,children:s,...i}=e,{error:o,formMessageId:a}=m(),l=o?String(null==o?void 0:o.message):s;return l?(0,n.jsx)("p",{ref:t,id:a,className:(0,u._)("text-[0.8rem] font-medium text-destructive",r),...i,children:l}):null});j.displayName="FormMessage"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.