Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bme-mcp
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
何家明
bme-mcp
Commits
c63a8355
Commit
c63a8355
authored
May 19, 2025
by
何家明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AI回答图标
parent
a5715884
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
api.py
api.py
+6
-0
No files found.
api.py
View file @
c63a8355
...
...
@@ -25,6 +25,12 @@ api = FastAPI(title="BME MCP服务", lifespan=lifespan)
router
=
APIRouter
(
prefix
=
"/ai/api/mcp"
)
@
router
.
get
(
"/chat/logo"
)
async
def
get_ai_logo
():
return
ResultVo
(
data
=
{
"text"
:
"AI 问答"
,
"icon"
:
"https://wx.bmetech.com/screen/saver/ailogo.png"
})
@
router
.
get
(
"/chat/permission"
,
description
=
"查看当前客户是否具备ai问答的权限"
)
async
def
query_chat_permission
(
customer_id
:
int
):
...
...
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