mirror of
https://github.com/csunny/DB-GPT.git
synced 2026-01-29 21:49:35 +00:00
WEB API independent
This commit is contained in:
@@ -55,7 +55,6 @@ app.add_middleware(
|
||||
)
|
||||
|
||||
app.mount("/static", StaticFiles(directory=static_file_path), name="static")
|
||||
app.add_route("/test", "static/test.html")
|
||||
|
||||
app.include_router(api_v1)
|
||||
app.add_exception_handler(RequestValidationError, validation_exception_handler)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="output"></div>
|
||||
<div id="output">Hello World! I'm DB-GPT!</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var source = new EventSource("/v1/chat/completions");
|
||||
|
||||
Reference in New Issue
Block a user