Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chatbot_canifa_test_conservation_tools
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
chatbot_canifa_test_conservation_tools
Commits
ac6be50f
Commit
ac6be50f
authored
Feb 11, 2026
by
Vũ Hoàng Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add conversation test tool with SSE streaming
parent
178108a8
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1259 additions
and
0 deletions
+1259
-0
test_conversation_route.py
backend/api/test_conversation_route.py
+299
-0
middleware.py
backend/common/middleware.py
+1
-0
server.py
backend/server.py
+2
-0
index.html
backend/static/index.html
+1
-0
test_conversation.html
backend/static/test_conversation.html
+956
-0
Dự án Chatbot RSA.xlsx
public/Dự án Chatbot RSA.xlsx
+0
-0
No files found.
backend/api/test_conversation_route.py
0 → 100644
View file @
ac6be50f
This diff is collapsed.
Click to expand it.
backend/common/middleware.py
View file @
ac6be50f
...
@@ -43,6 +43,7 @@ PUBLIC_PATH_PREFIXES = [
...
@@ -43,6 +43,7 @@ PUBLIC_PATH_PREFIXES = [
"/static"
,
"/static"
,
"/mock"
,
"/mock"
,
"/api/mock"
,
"/api/mock"
,
"/api/test"
,
]
]
...
...
backend/server.py
View file @
ac6be50f
...
@@ -14,6 +14,7 @@ from api.conservation_route import router as conservation_router
...
@@ -14,6 +14,7 @@ from api.conservation_route import router as conservation_router
from
api.mock_api_route
import
router
as
mock_router
from
api.mock_api_route
import
router
as
mock_router
from
api.prompt_route
import
router
as
prompt_router
from
api.prompt_route
import
router
as
prompt_router
from
api.stock_route
import
router
as
stock_router
from
api.stock_route
import
router
as
stock_router
from
api.test_conversation_route
import
router
as
test_conversation_router
from
api.tool_prompt_route
import
router
as
tool_prompt_router
from
api.tool_prompt_route
import
router
as
tool_prompt_router
from
common.cache
import
redis_cache
from
common.cache
import
redis_cache
from
common.middleware
import
middleware_manager
from
common.middleware
import
middleware_manager
...
@@ -94,6 +95,7 @@ app.include_router(prompt_router)
...
@@ -94,6 +95,7 @@ app.include_router(prompt_router)
app
.
include_router
(
tool_prompt_router
)
# Register new router
app
.
include_router
(
tool_prompt_router
)
# Register new router
app
.
include_router
(
mock_router
)
app
.
include_router
(
mock_router
)
app
.
include_router
(
stock_router
)
app
.
include_router
(
stock_router
)
app
.
include_router
(
test_conversation_router
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
backend/static/index.html
View file @
ac6be50f
...
@@ -686,6 +686,7 @@
...
@@ -686,6 +686,7 @@
<div
class=
"nav-links"
>
<div
class=
"nav-links"
>
<a
href=
"/static/index.html"
class=
"active"
>
💬 Chatbot
</a>
<a
href=
"/static/index.html"
class=
"active"
>
💬 Chatbot
</a>
<a
href=
"/static/history.html"
>
🧾 Show History
</a>
<a
href=
"/static/history.html"
>
🧾 Show History
</a>
<a
href=
"/static/test_conversation.html"
>
🧪 Test Tool
</a>
</div>
</div>
</div>
</div>
...
...
backend/static/test_conversation.html
0 → 100644
View file @
ac6be50f
This diff is collapsed.
Click to expand it.
public/Dự án Chatbot RSA.xlsx
0 → 100644
View file @
ac6be50f
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment