LLMDCPlaygroundStefiAPIConfigUtils",["LLMDCCurrentUser","LLMDCPlaygroundStefiAPIConfigUtilsCreateChatMutation.graphql","LLMDCPlaygroundTypes","RelayHooks","react-compiler-runtime"],(function(t,n,r,o,a,i,l){"use strict";var e,s=function(t,n,a,i,l,s){s.updateConversationRow(i,l,{message:{contents:[],debug_content:{error_detail:a.detail,error_title:a.title,request_id:n==null?void 0:n.headers.get("x-fb-request-id")},is_complete:!0,is_stop:!0,source:{role:o("LLMDCPlaygroundTypes").LLMDCPlaygroundRole.ASSISTANT}},option:t.option,rawResponse:r("LLMDCCurrentUser").isLlamaAPIWorkingGroupMember?JSON.stringify(a,null,2):null,uuid:l})},u=async function(t,n,r,o,a){var e=await n.json();s(t,n,e,r,o,a)},c=function(t,n,r,o,a,i){var e=JSON.parse(r);s(t,n,e,o,a,i)},d=e!==void 0?e:e=n("LLMDCPlaygroundStefiAPIConfigUtilsCreateChatMutation.graphql");function m(){var e=o("react-compiler-runtime").c(2),t=o("RelayHooks").useMutation(d),n=t[0],r;e[0]!==n?(r=function(t,r,o){n({variables:{input:{content:JSON.stringify(t),last_assistant_response:r,request_ids:t.conversationHistory.map(_).filter(p),team:o!=null?o:""}}})},e[0]=n,e[1]=r):r=e[1];var a=r;return a}function p(e){return e!=null}function _(e){var t;return(t=e.message.debug_content)==null?void 0:t.request_id}var f=function(t,n){var e=[].concat(t.conversationHistory,[n]);return babelHelpers.extends({},t,{conversationHistory:e})},g=function(t){return t.startsWith("image/")||t.startsWith("video/")||t==="application/pdf"},h=function(t,n,r,a){n.addConversationRow(t.uuid,{message:{contents:[{media_response:{aspect_ratio:t.option.parameters.aspectRatio,id:"",images:[],metrics:[],model:t.option.parameters.model,prompt:"",total_time_ms:a}}],is_complete:!1,is_stop:!1,source:{role:o("LLMDCPlaygroundTypes").LLMDCPlaygroundRole.ASSISTANT},total_time_ms:a},option:t.option,uuid:r})},y=function(t,n,r,o,a){var e,i=r.current.find(function(e){return e.conversationUUID===t.uuid});if((i==null?void 0:i.isRequestInFlight)!==!1){h(t,n,a,null);var l={detail:(e=o.description)!=null?e:"",title:"Error"};s(t,null,l,t.uuid,a,n)}};l.updateConversationRow=s,l.handleErrorResponse=u,l.handleStreamingErrorResponse=c,l.useCreateChatSnapshot=m,l.addConversationRow=f,l.isSupportedMimeType=g,l.addEmptyStefiMediaApiResponseRow=h,l.handleStefiMediaApiErrorResponse=y}),98);
-----
LLMDCPlaygroundStefiAPIConfigUtilsCreateChatMutation.graphql",["LLMDCPlaygroundStefiAPIConfigUtilsCreateChatMutation_llamaRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XLLMCreatePlaygroundChatSnapshotResponsePayload",kind:"LinkedField",name:"xllm_create_playground_chat_snapshot",plural:!1,selections:[{alias:null,args:null,concreteType:"XLLMPlaygroundChat",kind:"LinkedField",name:"playground_chat",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"LLMDCPlaygroundStefiAPIConfigUtilsCreateChatMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"LLMDCPlaygroundStefiAPIConfigUtilsCreateChatMutation",selections:t},params:{id:n("LLMDCPlaygroundStefiAPIConfigUtilsCreateChatMutation_llamaRelayOperation"),metadata:{},name:"LLMDCPlaygroundStefiAPIConfigUtilsCreateChatMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
LLMDCPlaygroundStefiAPIConfigUtilsCreateChatMutation_llamaRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24265400079806597"}),null);
-----