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