| 1 |
- import{H as t}from"./index-BXFjXy9U.js";function l(e){const o={icon_type:"emoji",icon:"🤖",icon_background:"#FFEAD5"};return o.mode=e.mode,o.name=e.name,o.description=e.description,t({url:"/dify/console/api/apps",method:"post",data:o})}function d(e){return t({url:`/dify/console/api/apps/${e}`,method:"delete"})}function s(e,o){return t({url:`/dify/console/api/apps/${e}`,method:"put",data:o})}function a(e){return t({url:"/rgflow/v1/dialog/set",method:"post",data:e})}function c(e){return t({url:"/rgflow/v1/dialog/rm",method:"post",data:e})}function i(e){return t({url:"/rgflow/v1/document/upload",method:"post",data:e,headers:{headers:{"Content-Type":"application/x-www-form-urlencoded"}}.headers})}function m(){return t({url:"/rgflow/v1/llm/list",method:"get"})}function f(e){return t({url:`/rgflow/v1/dialog/get?dialog_id=${e}`,method:"get"})}function p(e){return t({url:"/rgflow/v1/kb/create",method:"post",data:{name:e}})}function g(){return t({url:"/rgflow/v1/kb/list",method:"get"})}function h(e){return t({url:"/rgflow/v1/kb/detail",method:"get",params:e})}function w(e){return t({url:"/rgflow/v1/document/list",method:"get",params:e})}function k(e){return t({url:"/rgflow/v1/kb/rm",method:"post",data:e})}function y(e){return t({url:"/rgflow/v1/document/rm",method:"post",data:e})}function v(e){return t({url:"/rgflow/v1/document/run",method:"post",data:e})}function b(e){return t({url:"/rgflow/v1/document/change_status",method:"post",data:e})}const M=({url:e,filename:o,target:n})=>{const r=document.createElement("a");r.style.display="none",r.href=e,n&&(r.target="_blank"),r.rel="noopener noreferrer",o&&(r.download=o),document.body.appendChild(r),r.click(),document.body.removeChild(r)};function _(e){return t({url:"/rgflow/v1/document/change_status",method:"post",data:e})}function D(e){return t({url:"/rgflow/v1/document/change_parser",method:"post",data:e})}function R(e){return t({url:"/rgflow/v1/chunk/create",method:"post",data:e})}function S(e){return t({url:"/rgflow/v1/chunk/list",method:"post",data:e})}function F(e){return t({url:"/rgflow/v1/chunk/switch",method:"post",data:e})}function G(e){return t({url:"/rgflow/v1/chunk/rm",method:"post",data:e})}function C(e){return t({url:"/rgflow/v1/chunk/get",method:"get",params:e})}function x(e){return t({url:"/rgflow/v1/chunk/set",method:"post",data:e})}function K(e){return t({url:"/rgflow/v1/chunk/retrieval_test",method:"post",data:e})}function L(e){return t({url:"/rgflow/v1/document/rename",method:"post",data:e})}function $(e){return t({url:"/rgflow/v1/llm/my_llms",method:"get",params:e})}function q(e){return t({url:"/rgflow/v1/kb/update",method:"post",data:e})}function I(){return t({url:"/rgflow/v1/user/tenant_info",method:"get"})}function T(){return t({url:"/rgflow//v1/llm/my_llms",method:"get"})}function E(){return t({url:"/rgflow/v1/llm/factories",method:"get"})}function A(){return t({url:"/rgflow/v1/user/tenant_info",method:"get"})}function U(e){return t({url:"/rgflow/v1/user/set_tenant_info",method:"post",data:e})}function Y({llm_factory:e}){return t({url:"/rgflow/v1/llm/delete_factory",method:"post",data:{llm_factory:e}})}function j({llm_factory:e,llm_name:o}){return t({url:"/rgflow/v1/llm/delete_llm",method:"post",data:{llm_factory:e,llm_name:o}})}function B(e){return t({url:"/rgflow/v1/llm/add_llm",method:"post",data:e})}function H(e){return t({url:"/rgflow/v1/llm/set_api_key",method:"post",data:e})}function z(){return t({url:"/dify/console/api/workspaces/current/model-providers",method:"get"})}function J(e){return t({url:`/dify/console/api/workspaces/current/model-providers/${e}/models`,method:"get"})}function N(e,o){return t({url:`/dify/console/api/workspaces/current/model-providers/${e}/models`,method:"post",data:o})}function O(e,o){return t({url:`/dify/console/api/workspaces/current/model-providers/${e}`,method:"post",data:o})}function P(){return t({url:"/dify/console/api/workspaces/current/models/model-types/llm",method:"get"})}function Q(){return t({url:"/dify/console/api/workspaces/current/models/model-types/text-embedding",method:"get"})}function V(){return t({url:"/dify/console/api/workspaces/current/models/model-types/rerank",method:"get"})}function W(){return t({url:"/dify/console/api/workspaces/current/models/model-types/speech2text",method:"get"})}function X(){return t({url:"/dify/console/api/workspaces/current/models/model-types/tts",method:"get"})}function Z(e){return t({url:"/dify/console/api/workspaces/current/default-model",method:"post",data:e})}function ee(e,o){return t({url:`/dify/console/api/workspaces/current/model-providers/${e}/models`,method:"delete",data:o})}export{b as A,w as B,h as C,I as D,A as E,U as F,P as G,Q as H,V as I,W as J,X as K,Z as L,j as M,Y as N,B as O,H as P,T as Q,E as R,ee as S,N as T,O as U,z as V,J as W,a,c as b,l as c,d,p as e,k as f,f as g,L as h,$ as i,q as j,i as k,K as l,R as m,x as n,D as o,F as p,m as q,S as r,C as s,G as t,s as u,g as v,_ as w,v as x,y,M as z};
|