Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
custom-skills
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
eazy-template
custom-skills
Commits
cbc680a1
Commit
cbc680a1
authored
Mar 19, 2026
by
yuxiaodi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
aadeb10c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
app.py
app.py
+18
-4
No files found.
app.py
View file @
cbc680a1
...
@@ -16,15 +16,22 @@ def _build_welcome_message(download_url: str) -> str:
...
@@ -16,15 +16,22 @@ def _build_welcome_message(download_url: str) -> str:
return
(
return
(
"欢迎来到 Eazybot 智能体技能开发模板。"
"欢迎来到 Eazybot 智能体技能开发模板。"
"您可以在IDE的对话框中描述你想开发的技能内容,让卓易coder帮您开发,当然您也可以自己在 IDE 中的 `skills/` 目录下开发您的自定义技能;开发完成后,使用 `make skill` 命令打包。"
"您可以在IDE的对话框中描述你想开发的技能内容,让卓易coder帮您开发,当然您也可以自己在 IDE 中的 `skills/` 目录下开发您的自定义技能;开发完成后,使用 `make skill` 命令打包。"
"部署后,你可以访问:"
"部署后,你可以访问:
"
f
"{download_url}"
f
"{download_url}
(开发过程中预览界面为临时链接,部署后获取稳定链接)
"
"下载打包好的 `.skill` 压缩包;也可以直接把该链接交给 Eazybot,让其自行安装技能。"
"下载打包好的 `.skill` 压缩包;也可以直接把该链接交给 Eazybot,让其自行安装技能。"
)
)
def
_build_public_base_url
(
request
:
Request
)
->
str
:
host
=
request
.
headers
.
get
(
"host"
,
""
)
.
strip
()
if
host
:
return
f
"https://{host}"
return
"https://localhost"
@
app
.
get
(
"/"
)
@
app
.
get
(
"/"
)
def
read_root
(
request
:
Request
):
def
read_root
(
request
:
Request
):
download_url
=
f
"{
str(request.base_url).rstrip('/'
)}/download"
download_url
=
f
"{
_build_public_base_url(request
)}/download"
return
{
"message"
:
_build_welcome_message
(
download_url
)}
return
{
"message"
:
_build_welcome_message
(
download_url
)}
...
@@ -74,4 +81,11 @@ def download_skill(
...
@@ -74,4 +81,11 @@ def download_skill(
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
port
=
int
(
os
.
getenv
(
"APP_PORT_1"
,
8000
))
port
=
int
(
os
.
getenv
(
"APP_PORT_1"
,
8000
))
uvicorn
.
run
(
"app:app"
,
host
=
"0.0.0.0"
,
port
=
port
,
reload
=
True
)
uvicorn
.
run
(
"app:app"
,
host
=
"0.0.0.0"
,
port
=
port
,
reload
=
True
,
proxy_headers
=
True
,
forwarded_allow_ips
=
"*"
,
)
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