Skip to content

Commit 137e6d3

Browse files
committed
prompt UI
1 parent dc512d6 commit 137e6d3

7 files changed

Lines changed: 32 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Bella是贝壳找房内部的一站式智能接入、智能体创建及发布平
1313
### Bella-knowledge - 智能知识管理中心 <a href="https://github.com/LianjiaTech/bella-knowledge"><img style="width: 24px; height: auto; vertical-align: middle;" src="./static/img/github/github-mark.svg" alt="GitHub" /></a>
1414
专注于知识的统一存储与管理,优雅处理文件、问答对等多类知识源,为智能应用提供强大的知识支撑。
1515

16-
### Bella-assistants - 跨平台智能助手引擎 <a href="https://github.com/LianjiaTech/bella-assistant"><img style="width: 24px; height: auto; vertical-align: middle;" src="./static/img/github/github-mark.svg" alt="GitHub" /></a>
16+
### Bella-assistants - 跨平台智能助手引擎 <a href="https://github.com/LianjiaTech/bella-assistants"><img style="width: 24px; height: auto; vertical-align: middle;" src="./static/img/github/github-mark.svg" alt="GitHub" /></a>
1717
兼容OpenAI Assistants API和Responses API的开源实现,突破原生生态限制,支持灵活切换各大厂商模型,真正实现"一次开发,处处可用"。
1818

1919
### Bella-rag - 高效检索增强生成系统 <a href="https://github.com/LianjiaTech/bella-rag"><img style="width: 24px; height: auto; vertical-align: middle;" src="./static/img/github/github-mark.svg" alt="GitHub" /></a>

README_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Beyond chat completion, Bella-openapi integrates multiple AI capabilities includ
1313
### Bella-knowledge - Intelligent Knowledge Management Center <a href="https://github.com/LianjiaTech/bella-knowledge"><img style="width: 24px; height: auto; vertical-align: middle;" src="./static/img/github/github-mark.svg" alt="GitHub" /></a>
1414
Focused on unified storage and management of knowledge, elegantly handling multiple knowledge sources such as files and Q&A pairs, providing powerful knowledge support for intelligent applications.
1515

16-
### Bella-assistants - Cross-platform Intelligent Assistant Engine <a href="https://github.com/LianjiaTech/bella-assistant"><img style="width: 24px; height: auto; vertical-align: middle;" src="./static/img/github/github-mark.svg" alt="GitHub" /></a>
16+
### Bella-assistants - Cross-platform Intelligent Assistant Engine <a href="https://github.com/LianjiaTech/bella-assistants"><img style="width: 24px; height: auto; vertical-align: middle;" src="./static/img/github/github-mark.svg" alt="GitHub" /></a>
1717
An open-source implementation compatible with OpenAI Assistants API and Responses API, breaking through native ecosystem limitations, supporting flexible switching between various vendor models, truly achieving "develop once, use everywhere."
1818

1919
### Bella-rag - Efficient Retrieval-Augmented Generation System <a href="https://github.com/LianjiaTech/bella-rag"><img style="width: 24px; height: auto; vertical-align: middle;" src="./static/img/github/github-mark.svg" alt="GitHub" /></a>

config/projects-data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"en_description": "An open-source implementation compatible with OpenAI Assistants API and Responses API, breaking through native ecosystem limitations, supporting flexible switching between various vendor models, truly achieving develop once, use everywhere.",
4242
"type": "endpoint",
4343
"status": "upcoming",
44-
"github": "https://github.com/LianjiaTech/bella-assistant",
44+
"github": "https://github.com/LianjiaTech/bella-assistants",
4545
"documentationLink": "/docs/bella-assistants/intro",
4646
"dependencies": [
4747
{

i18n/en/code.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
"description": "Flexible extension feature description"
370370
},
371371
"homepage.architecture.title": {
372-
"message": "Bella OpenSource Project Architecture",
372+
"message": "Bella OpenSource Project List",
373373
"description": "Architecture overview title"
374374
},
375375
"homepage.architecture.tip": {
@@ -499,5 +499,9 @@
499499
"project.GitHub.Stared.Failed": {
500500
"message": "Failed to star, please refresh and retry.",
501501
"description": "Github Star Failed"
502+
},
503+
"project.api.unavaliable": {
504+
"message": "No API Docs",
505+
"description": "Github Star Failed"
502506
}
503507
}

src/components/HomepageFeatures/index.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,18 @@ const ArchitectureModule: React.FC<{
105105
style={{ width: `${width}px` }}
106106
>
107107
<div className={styles.moduleHeader}>
108-
<h3>{project.name}</h3>
108+
<h3>
109+
{project.github && (
110+
<a href={project.github} target="_blank" rel="noopener noreferrer" style={{ marginRight: '8px' }}>
111+
<img
112+
style={{ width: '16px', height: 'auto', verticalAlign: 'middle' }}
113+
src="./img/github/github-mark.svg"
114+
alt="GitHub"
115+
/>
116+
</a>
117+
)}
118+
{project.name}
119+
</h3>
109120
{project.status === 'released' && (
110121
<div className={`${styles.statusBadge} ${styles[`status-${project.status}`]}`}>
111122
{translate({
@@ -519,15 +530,15 @@ export default function HomepageFeatures(): React.ReactElement {
519530
<div className={styles.logoIcon}>B</div>
520531
<div className={styles.logoText}>{translate({
521532
id: 'homepage.architecture.title',
522-
message: 'Bella 开源项目架构',
533+
message: 'Bella 开源项目清单',
523534
description: 'Architecture overview title'
524535
})}</div>
525536
</div>
526-
<span className={styles.architectureTip}>{translate({
537+
<p className={styles.architectureTip}>{translate({
527538
id: 'homepage.architecture.tip',
528539
message: '点击项目可查看详情',
529540
description: 'Tip for clicking on projects'
530-
})}</span>
541+
})}</p>
531542
</div>
532543

533544
<div className={styles.container} style={{ maxWidth: '100%', padding: 0 }}>

src/components/HomepageFeatures/styles.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.header {
44
text-align: center;
5-
padding: 3rem 2rem;
5+
padding: 1rem;
66
margin-top: 1rem;
77
border-radius: 0 0 20px 20px;
88
}
@@ -73,7 +73,6 @@
7373
.architectureSection {
7474
padding: 0 1rem;
7575
width: 90%;
76-
margin-bottom: 2rem;
7776
margin-left: auto;
7877
margin-right: auto;
7978
}

src/pages/api-viewer.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ function ProjectCard({ project }) {
131131
description: 'View API documentation button'
132132
})}
133133
</Link>
134+
) : project.status === 'released' ? (
135+
<div className={`${styles.viewButton} ${styles.disabledButton}`}>
136+
{translate({
137+
id: 'project.api.unavaliable',
138+
message: '无 API 文档',
139+
description: 'API documentation unavailable tooltip'
140+
})}
141+
</div>
134142
) : (
135143
<div
136144
className={`${styles.viewButton} ${styles.disabledButton}`}

0 commit comments

Comments
 (0)