rgflow-dify-DAl9Xbef.js 2.7 KB

1
  1. import{x as e}from"./index-CSfNVY9x.js";function l(t){const o={icon_type:"emoji",icon:"🤖",icon_background:"#FFEAD5"};return o.mode=t.mode,o.name=t.name,o.description=t.description,e({url:"/dify/console/api/apps",method:"post",data:o})}function a(t){return e({url:`/dify/console/api/apps/${t}`,method:"delete"})}function c(t){return e({url:"/rgflow/v1/dialog/set",method:"post",data:t})}function d(t){return e({url:"/rgflow/v1/dialog/rm",method:"post",data:t})}function s(t){return e({url:"/rgflow/v1/document/upload",method:"post",data:t,headers:{headers:{"Content-Type":"application/x-www-form-urlencoded"}}.headers})}function i(){return e({url:"/rgflow/v1/llm/list",method:"get"})}function m(t){return e({url:`/rgflow/v1/dialog/get?dialog_id=${t}`,method:"get"})}function f(t){return e({url:"/rgflow/v1/kb/create",method:"post",data:{name:t}})}function g(){return e({url:"/rgflow/v1/kb/list",method:"get"})}function h(t){return e({url:"/rgflow/v1/kb/detail",method:"get",params:t})}function p(t){return e({url:"/rgflow/v1/document/list",method:"get",params:t})}function w(t){return e({url:"/rgflow/v1/kb/rm",method:"post",data:t})}function k(t){return e({url:"/rgflow/v1/document/rm",method:"post",data:t})}function v(t){return e({url:"/rgflow/v1/document/run",method:"post",data:t})}function b(t){return e({url:"/rgflow/v1/document/change_status",method:"post",data:t})}const y=({url:t,filename:o,target:r})=>{const n=document.createElement("a");n.style.display="none",n.href=t,r&&(n.target="_blank"),n.rel="noopener noreferrer",o&&(n.download=o),document.body.appendChild(n),n.click(),document.body.removeChild(n)};function _(t){return e({url:"/rgflow/v1/document/change_status",method:"post",data:t})}function q(t){return e({url:"/rgflow/v1/document/change_parser",method:"post",data:t})}function D(t){return e({url:"/rgflow/v1/chunk/create",method:"post",data:t})}function F(t){return e({url:"/rgflow/v1/chunk/list",method:"post",data:t})}function K(t){return e({url:"/rgflow/v1/chunk/switch",method:"post",data:t})}function x(t){return e({url:"/rgflow/v1/chunk/rm",method:"post",data:t})}function C(t){return e({url:"/rgflow/v1/chunk/get",method:"get",params:t})}function L(t){return e({url:"/rgflow/v1/chunk/set",method:"post",data:t})}function R(t){return e({url:"/rgflow/v1/chunk/retrieval_test",method:"post",data:t})}function S(t){return e({url:"/rgflow/v1/document/rename",method:"post",data:t})}function j(t){return e({url:"/rgflow/v1/llm/my_llms",method:"get",params:t})}function E(t){return e({url:"/rgflow/v1/kb/update",method:"post",data:t})}export{p as A,h as B,i as a,c as b,l as c,a as d,d as e,f,m as g,w as h,S as i,j,s as k,E as l,R as m,D as n,L as o,q as p,g as q,K as r,F as s,C as t,x as u,_ as v,v as w,k as x,y,b as z};