mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-08 11:47:44 +00:00
WEB API independent
This commit is contained in:
parent
bdcc3d2bc6
commit
c4bcbf55a9
@ -8,7 +8,7 @@ const nextConfig = {
|
||||
ignoreBuildErrors: true
|
||||
},
|
||||
env: {
|
||||
API_BASE_URL: process.env.API_BASE_URL || 'https://u158074-879a-d00019a9.westa.seetacloud.com:8443'
|
||||
API_BASE_URL: process.env.API_BASE_URL || 'http://127.0.0.1:5000'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -96,9 +96,9 @@ def knowledge_list():
|
||||
return params
|
||||
|
||||
|
||||
# @router.get("/")
|
||||
# async def read_main():
|
||||
# return FileResponse(f"{static_file_path}/index.html")
|
||||
@router.get("/chat")
|
||||
async def read_main():
|
||||
return FileResponse(f"{static_file_path}/chat.html")
|
||||
|
||||
|
||||
@router.get("/v1/chat/dialogue/list", response_model=Result[ConversationVo])
|
||||
|
@ -95,19 +95,18 @@ class BaseOutputParser(ABC):
|
||||
yield output
|
||||
|
||||
def parse_model_nostream_resp(self, response, sep: str):
|
||||
text = response.strip()
|
||||
text = text.rstrip()
|
||||
text = text.strip(b"\x00".decode())
|
||||
respObj_ex = json.loads(text)
|
||||
if respObj_ex["error_code"] == 0:
|
||||
all_text = respObj_ex["text"]
|
||||
resp_obj_ex = json.loads(response)
|
||||
if isinstance(resp_obj_ex, str):
|
||||
resp_obj_ex = json.loads(resp_obj_ex)
|
||||
if resp_obj_ex["error_code"] == 0:
|
||||
all_text = resp_obj_ex["text"]
|
||||
### 解析返回文本,获取AI回复部分
|
||||
tmpResp = all_text.split(sep)
|
||||
tmp_resp = all_text.split(sep)
|
||||
last_index = -1
|
||||
for i in range(len(tmpResp)):
|
||||
if tmpResp[i].find("assistant:") != -1:
|
||||
for i in range(len(tmp_resp)):
|
||||
if tmp_resp[i].find("assistant:") != -1:
|
||||
last_index = i
|
||||
ai_response = tmpResp[last_index]
|
||||
ai_response = tmp_resp[last_index]
|
||||
ai_response = ai_response.replace("assistant:", "")
|
||||
ai_response = ai_response.replace("Assistant:", "")
|
||||
ai_response = ai_response.replace("ASSISTANT:", "")
|
||||
@ -117,7 +116,7 @@ class BaseOutputParser(ABC):
|
||||
print("un_stream ai response:", ai_response)
|
||||
return ai_response
|
||||
else:
|
||||
raise ValueError("Model server error!code=" + respObj_ex["error_code"])
|
||||
raise ValueError("Model server error!code=" + resp_obj_ex["error_code"])
|
||||
|
||||
def __extract_json(self, s):
|
||||
i = s.index("{")
|
||||
|
@ -160,12 +160,13 @@ class BaseChat(ABC):
|
||||
try:
|
||||
rsp_str = ""
|
||||
if not CFG.NEW_SERVER_MODE:
|
||||
rsp_str = requests.post(
|
||||
rsp_obj = requests.post(
|
||||
urljoin(CFG.MODEL_SERVER, "generate"),
|
||||
headers=headers,
|
||||
json=payload,
|
||||
timeout=120,
|
||||
)
|
||||
rsp_str = rsp_obj.text
|
||||
else:
|
||||
###TODO no stream mode need independent
|
||||
from pilot.server.llmserver import worker
|
||||
|
@ -72,9 +72,9 @@ app.include_router(knowledge_router, prefix="/api")
|
||||
app.include_router(api_v1)
|
||||
app.include_router(knowledge_router)
|
||||
|
||||
app.mount("/static", StaticFiles(directory=static_file_path), name="static")
|
||||
app.mount("/_next/static", StaticFiles(directory=static_file_path + "/_next/static"))
|
||||
app.mount("/", StaticFiles(directory=static_file_path, html=True), name="static")
|
||||
# app.mount("/chat", StaticFiles(directory=static_file_path + "/chat.html", html=True), name="chat")
|
||||
|
||||
|
||||
|
||||
|
@ -176,13 +176,13 @@ def generate(prompt_request: PromptRequest):
|
||||
"stop": prompt_request.stop,
|
||||
}
|
||||
|
||||
response = []
|
||||
|
||||
rsp_str = ""
|
||||
output = worker.generate_stream_gate(params)
|
||||
for rsp in output:
|
||||
# rsp = rsp.decode("utf-8")
|
||||
rsp_str = str(rsp, "utf-8")
|
||||
response.append(rsp_str)
|
||||
rsp = rsp.replace(b"\0", b"")
|
||||
rsp_str = rsp.decode()
|
||||
|
||||
return rsp_str
|
||||
|
||||
|
1
pilot/server/static/404.html
Normal file
1
pilot/server/static/404.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-650716d85fcf6d69.js" defer=""></script><script src="/_next/static/chunks/framework-43665103d101a22d.js" defer=""></script><script src="/_next/static/chunks/main-66255ab057ead764.js" defer=""></script><script src="/_next/static/chunks/pages/_app-1f2755172264764d.js" defer=""></script><script src="/_next/static/chunks/pages/_error-f5357f382422dd96.js" defer=""></script><script src="/_next/static/2N4jCtrihdPcI8zGcRkso/_buildManifest.js" defer=""></script><script src="/_next/static/2N4jCtrihdPcI8zGcRkso/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">This page could not be found<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"2N4jCtrihdPcI8zGcRkso","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
@ -0,0 +1 @@
|
||||
self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-f5357f382422dd96.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
@ -0,0 +1 @@
|
||||
self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97155:function(){}},function(n){n.O(0,[253,769,744],function(){return n(n.s=97155)}),_N_E=n.O()}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{55254:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var a=n(9268),i=n(56008),s=n(86006),r=n(78635),c=n(70900),o=n(44334),d=n(311),l=n(22046),h=n(83192),u=n(23910),g=n(1031);t.default=()=>{let e=(0,i.useRouter)(),{mode:t}=(0,r.tv)(),n=(0,i.useSearchParams)().get("spacename"),x=(0,i.useSearchParams)().get("documentid"),[j,p]=(0,s.useState)(0),[m,f]=(0,s.useState)(0),[S,y]=(0,s.useState)([]);return(0,s.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://127.0.0.1:5000","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:x,page:1,page_size:20})}),t=await e.json();t.success&&(y(t.data.data),p(t.data.total),f(t.data.page))})()},[]),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,a.jsxs)(o.Z,{"aria-label":"breadcrumbs",children:[(0,a.jsx)(d.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,a.jsx)(d.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,a.jsx)(l.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,a.jsx)("div",{className:"p-4",children:S.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Content"}),(0,a.jsx)("th",{children:"Meta Data"})]})}),(0,a.jsx)("tbody",{children:S.map(e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:e.doc_name}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]}),(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,a.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:m,total:j,onChange:async e=>{let t=await fetch("".concat("http://127.0.0.1:5000","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:x,page:e,page_size:20})}),a=await t.json();a.success&&(y(a.data.data),p(a.data.total),f(a.data.page))},hideOnSinglePage:!0})})]}):(0,a.jsx)(a.Fragment,{})})]})}}},function(e){e.O(0,[430,599,341,585,440,232,253,769,744],function(){return e(e.s=55254)}),_N_E=e.O()}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{58598:function(e,n,t){Promise.resolve().then(t.t.bind(t,68802,23)),Promise.resolve().then(t.t.bind(t,13211,23)),Promise.resolve().then(t.t.bind(t,5767,23)),Promise.resolve().then(t.t.bind(t,14299,23)),Promise.resolve().then(t.t.bind(t,37396,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[253,769],function(){return n(29070),n(58598)}),_N_E=e.O()}]);
|
@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{41597:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return u(55366)}])}},function(n){var _=function(_){return n(n.s=_)};n.O(0,[774,179],function(){return _(41597),_(75919)}),_N_E=n.O()}]);
|
@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{81981:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return u(14600)}])}},function(n){n.O(0,[888,774,179],function(){return n(n.s=81981)}),_N_E=n.O()}]);
|
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.loaded=!0,n.exports}d.m=a,e=[],d.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,f=0;f<n.length;f++)i>=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var a=r();void 0!==a&&(t=a)}}return t},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},d.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);d.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},d.d(o,u),o},d.d=function(e,t){for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.f={},d.e=function(e){return Promise.all(Object.keys(d.f).reduce(function(t,n){return d.f[n](e,t),t},[]))},d.u=function(e){},d.miniCssF=function(e){return"static/css/a4b50755e0d5ba2a.css"},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",d.l=function(e,t,n,u){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var i,c,f=document.getElementsByTagName("script"),a=0;a<f.length;a++){var l=f[a];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+n){i=l;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.setAttribute("data-webpack",o+n),i.src=d.tu(e)),r[e]=[t];var s=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),c&&document.head.appendChild(i)},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},d.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},d.tu=function(e){return d.tt().createScriptURL(e)},d.p="/_next/",i={272:0},d.f.j=function(e,t){var n=d.o(i,e)?i[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(272!=e){var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=d.p+d.u(e),u=Error();d.l(o,function(t){if(d.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",u.name="ChunkLoadError",u.type=r,u.request=o,n[1](u)}},"chunk-"+e,e)}else i[e]=0}},d.O.j=function(e){return 0===i[e]},c=function(e,t){var n,r,o=t[0],u=t[1],c=t[2],f=0;if(o.some(function(e){return 0!==i[e]})){for(n in u)d.o(u,n)&&(d.m[n]=u[n]);if(c)var a=c(d)}for(e&&e(t);f<o.length;f++)r=o[f],d.o(i,r)&&i[r]&&i[r][0](),i[r]=0;return d.O(a)},(f=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(c.bind(null,0)),f.push=c.bind(null,f.push.bind(f))}();
|
File diff suppressed because one or more lines are too long
1
pilot/server/static/agents.html
Normal file
1
pilot/server/static/agents.html
Normal file
File diff suppressed because one or more lines are too long
9
pilot/server/static/agents.txt
Normal file
9
pilot/server/static/agents.txt
Normal file
@ -0,0 +1,9 @@
|
||||
1:HL["/_next/static/css/a4b50755e0d5ba2a.css",{"as":"style"}]
|
||||
0:["2N4jCtrihdPcI8zGcRkso",[[["",{"children":["agents",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a4b50755e0d5ba2a.css","precedence":"next"}]],["$L3",null]]]]]
|
||||
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","599:static/chunks/599-4ea738cadbc2b985.js","562:static/chunks/562-967d90db5cfc2e85.js","341:static/chunks/341-3a3a18e257473447.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-66e88a07cca64650.js","185:static/chunks/app/layout-aed10a2e796db2e5.js"],"name":"","async":false}
|
||||
5:I{"id":"13211","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
6:I{"id":"5767","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
7:I{"id":"37396","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
8:I{"id":"4191","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","481:static/chunks/481-55e7d47dd2c74b66.js","718:static/chunks/app/agents/page-b936c960c8a75854.js"],"name":"","async":false}
|
||||
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","agents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],null],"segment":"agents"},"styles":[]}],"params":{}}],null]
|
||||
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
|
BIN
pilot/server/static/bg1.avif
Normal file
BIN
pilot/server/static/bg1.avif
Normal file
Binary file not shown.
BIN
pilot/server/static/bg2.png
Normal file
BIN
pilot/server/static/bg2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 197 KiB |
1
pilot/server/static/chat.html
Normal file
1
pilot/server/static/chat.html
Normal file
File diff suppressed because one or more lines are too long
9
pilot/server/static/chat.txt
Normal file
9
pilot/server/static/chat.txt
Normal file
@ -0,0 +1,9 @@
|
||||
1:HL["/_next/static/css/a4b50755e0d5ba2a.css",{"as":"style"}]
|
||||
0:["2N4jCtrihdPcI8zGcRkso",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a4b50755e0d5ba2a.css","precedence":"next"}]],["$L3",null]]]]]
|
||||
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","599:static/chunks/599-4ea738cadbc2b985.js","562:static/chunks/562-967d90db5cfc2e85.js","341:static/chunks/341-3a3a18e257473447.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-66e88a07cca64650.js","185:static/chunks/app/layout-aed10a2e796db2e5.js"],"name":"","async":false}
|
||||
5:I{"id":"13211","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
6:I{"id":"5767","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
7:I{"id":"37396","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
8:I{"id":"59498","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","599:static/chunks/599-4ea738cadbc2b985.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","929:static/chunks/app/chat/page-b2c83b48fe1c66aa.js"],"name":"","async":false}
|
||||
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","chat","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chat"},"styles":[]}],"params":{}}],null]
|
||||
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
|
1
pilot/server/static/datastores.html
Normal file
1
pilot/server/static/datastores.html
Normal file
File diff suppressed because one or more lines are too long
9
pilot/server/static/datastores.txt
Normal file
9
pilot/server/static/datastores.txt
Normal file
@ -0,0 +1,9 @@
|
||||
1:HL["/_next/static/css/a4b50755e0d5ba2a.css",{"as":"style"}]
|
||||
0:["2N4jCtrihdPcI8zGcRkso",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a4b50755e0d5ba2a.css","precedence":"next"}]],["$L3",null]]]]]
|
||||
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","599:static/chunks/599-4ea738cadbc2b985.js","562:static/chunks/562-967d90db5cfc2e85.js","341:static/chunks/341-3a3a18e257473447.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-66e88a07cca64650.js","185:static/chunks/app/layout-aed10a2e796db2e5.js"],"name":"","async":false}
|
||||
5:I{"id":"13211","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
6:I{"id":"5767","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
7:I{"id":"37396","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
8:I{"id":"44323","chunks":["430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","599:static/chunks/599-4ea738cadbc2b985.js","86:static/chunks/86-3a20bc6b78835c59.js","341:static/chunks/341-3a3a18e257473447.js","585:static/chunks/585-c91fc54776d36acd.js","672:static/chunks/672-860e1c1d53658862.js","816:static/chunks/816-d789aef0a8ccb438.js","43:static/chunks/app/datastores/page-37fc7378d618f838.js"],"name":"","async":false}
|
||||
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null]
|
||||
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
|
1
pilot/server/static/datastores/documents.html
Normal file
1
pilot/server/static/datastores/documents.html
Normal file
File diff suppressed because one or more lines are too long
9
pilot/server/static/datastores/documents.txt
Normal file
9
pilot/server/static/datastores/documents.txt
Normal file
@ -0,0 +1,9 @@
|
||||
1:HL["/_next/static/css/a4b50755e0d5ba2a.css",{"as":"style"}]
|
||||
0:["2N4jCtrihdPcI8zGcRkso",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a4b50755e0d5ba2a.css","precedence":"next"}]],["$L3",null]]]]]
|
||||
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","599:static/chunks/599-4ea738cadbc2b985.js","562:static/chunks/562-967d90db5cfc2e85.js","341:static/chunks/341-3a3a18e257473447.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-66e88a07cca64650.js","185:static/chunks/app/layout-aed10a2e796db2e5.js"],"name":"","async":false}
|
||||
5:I{"id":"13211","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
6:I{"id":"5767","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
7:I{"id":"37396","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
8:I{"id":"42069","chunks":["550:static/chunks/925f3d25-1af7259455ef26bd.js","430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","599:static/chunks/599-4ea738cadbc2b985.js","86:static/chunks/86-3a20bc6b78835c59.js","341:static/chunks/341-3a3a18e257473447.js","585:static/chunks/585-c91fc54776d36acd.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","232:static/chunks/232-8f672ca290539d0e.js","816:static/chunks/816-d789aef0a8ccb438.js","470:static/chunks/app/datastores/documents/page-3be113eb90383b56.js"],"name":"","async":false}
|
||||
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null]
|
||||
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
|
1
pilot/server/static/datastores/documents/chunklist.html
Normal file
1
pilot/server/static/datastores/documents/chunklist.html
Normal file
File diff suppressed because one or more lines are too long
9
pilot/server/static/datastores/documents/chunklist.txt
Normal file
9
pilot/server/static/datastores/documents/chunklist.txt
Normal file
@ -0,0 +1,9 @@
|
||||
1:HL["/_next/static/css/a4b50755e0d5ba2a.css",{"as":"style"}]
|
||||
0:["2N4jCtrihdPcI8zGcRkso",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a4b50755e0d5ba2a.css","precedence":"next"}]],["$L3",null]]]]]
|
||||
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","599:static/chunks/599-4ea738cadbc2b985.js","562:static/chunks/562-967d90db5cfc2e85.js","341:static/chunks/341-3a3a18e257473447.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-66e88a07cca64650.js","185:static/chunks/app/layout-aed10a2e796db2e5.js"],"name":"","async":false}
|
||||
5:I{"id":"13211","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
6:I{"id":"5767","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
7:I{"id":"37396","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
8:I{"id":"26257","chunks":["430:static/chunks/430-b60a693442ceb30f.js","599:static/chunks/599-4ea738cadbc2b985.js","341:static/chunks/341-3a3a18e257473447.js","585:static/chunks/585-c91fc54776d36acd.js","440:static/chunks/440-96bb64772ec3a56d.js","232:static/chunks/232-8f672ca290539d0e.js","538:static/chunks/app/datastores/documents/chunklist/page-e6191913d5909d54.js"],"name":"","async":false}
|
||||
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children","chunklist","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chunklist"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null]
|
||||
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
|
BIN
pilot/server/static/favicon.ico
Normal file
BIN
pilot/server/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
1
pilot/server/static/index.html
Normal file
1
pilot/server/static/index.html
Normal file
File diff suppressed because one or more lines are too long
9
pilot/server/static/index.txt
Normal file
9
pilot/server/static/index.txt
Normal file
@ -0,0 +1,9 @@
|
||||
1:HL["/_next/static/css/a4b50755e0d5ba2a.css",{"as":"style"}]
|
||||
0:["2N4jCtrihdPcI8zGcRkso",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a4b50755e0d5ba2a.css","precedence":"next"}]],["$L3",null]]]]]
|
||||
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","599:static/chunks/599-4ea738cadbc2b985.js","562:static/chunks/562-967d90db5cfc2e85.js","341:static/chunks/341-3a3a18e257473447.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-66e88a07cca64650.js","185:static/chunks/app/layout-aed10a2e796db2e5.js"],"name":"","async":false}
|
||||
5:I{"id":"13211","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
6:I{"id":"5767","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
7:I{"id":"37396","chunks":["272:static/chunks/webpack-650716d85fcf6d69.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-5cc40fd35d2e3ebe.js"],"name":"","async":false}
|
||||
8:I{"id":"93768","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-b60a693442ceb30f.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","931:static/chunks/app/page-06a7dbf12c4a3988.js"],"name":"","async":false}
|
||||
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"params":{}}],null]
|
||||
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
|
@ -703,21 +703,15 @@ if __name__ == "__main__":
|
||||
# init server config
|
||||
args = parser.parse_args()
|
||||
server_init(args)
|
||||
|
||||
if args.new:
|
||||
import uvicorn
|
||||
|
||||
uvicorn.run(app, host="0.0.0.0", port=5000)
|
||||
else:
|
||||
### Compatibility mode starts the old version server by default
|
||||
demo = build_webdemo()
|
||||
demo.queue(
|
||||
concurrency_count=args.concurrency_count,
|
||||
status_update_rate=10,
|
||||
api_open=False,
|
||||
).launch(
|
||||
server_name=args.host,
|
||||
server_port=args.port,
|
||||
share=args.share,
|
||||
max_threads=200,
|
||||
)
|
||||
dbs = CFG.local_db.get_database_list()
|
||||
demo = build_webdemo()
|
||||
demo.queue(
|
||||
concurrency_count=args.concurrency_count,
|
||||
status_update_rate=10,
|
||||
api_open=False,
|
||||
).launch(
|
||||
server_name=args.host,
|
||||
server_port=args.port,
|
||||
share=args.share,
|
||||
max_threads=200,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user