| 1 |
- import{x as e}from"./index-DwjpfNya.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 s(t){return e({url:"/rgflow/v1/document/upload",method:"post",data:t,headers:{headers:{"Content-Type":"application/x-www-form-urlencoded"}}.headers})}function d(){return e({url:"/rgflow/v1/llm/list",method:"get"})}function i(t){return e({url:`/rgflow/v1/dialog/get?dialog_id=${t}`,method:"get"})}function m(t){return e({url:"/rgflow/v1/kb/create",method:"post",data:{name:t}})}function f(){return e({url:"/rgflow/v1/kb/list",method:"get"})}function h(t){return e({url:"/rgflow/v1/kb/detail",method:"get",params:t})}function g(t){return e({url:"/rgflow/v1/document/list",method:"get",params:t})}function p(t){return e({url:"/rgflow/v1/document/rm",method:"post",data:t})}function w(t){return e({url:"/rgflow/v1/document/run",method:"post",data:t})}function k(t){return e({url:"/rgflow/v1/document/change_status",method:"post",data:t})}const v=({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 b(t){return e({url:"/rgflow/v1/document/change_status",method:"post",data:t})}function y(t){return e({url:"/rgflow/v1/document/change_parser",method:"post",data:t})}function _(t){return e({url:"/rgflow/v1/chunk/create",method:"post",data:t})}function q(t){return e({url:"/rgflow/v1/chunk/list",method:"post",params:t})}function D(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 F(t){return e({url:"/rgflow/v1/chunk/set",method:"post",data:t})}function K(t){return e({url:"/rgflow/v1/chunk/retrieval_test",method:"post",data:t})}function L(t){return e({url:"/rgflow/v1/document/rename",method:"post",data:t})}function S(t){return e({url:"/rgflow/v1/llm/my_llms",method:"get",params:t})}function j(t){return e({url:"/rgflow/v1/kb/update",method:"post",data:t})}export{L as a,j as b,m as c,K as d,_ as e,F as f,S as g,y as h,C as i,D as j,s as k,q as l,x as m,f as n,h as o,b as p,d as q,w as r,p as s,v as t,k as u,g as v,l as w,c as x,i as y,a as z};
|