@lobehub/chat 0.96.0 → 0.96.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/.github/workflows/issue-auto-comments.yml +72 -0
  2. package/.github/workflows/issue-close-require.yml +9 -6
  3. package/CHANGELOG.md +50 -0
  4. package/locales/en_US/chat.json +3 -0
  5. package/locales/en_US/error.json +1 -1
  6. package/locales/en_US/market.json +14 -0
  7. package/locales/en_US/plugin.json +5 -3
  8. package/locales/ja_JP/chat.json +3 -0
  9. package/locales/ja_JP/error.json +1 -1
  10. package/locales/ja_JP/market.json +14 -0
  11. package/locales/ja_JP/plugin.json +5 -3
  12. package/locales/ko_KR/chat.json +3 -0
  13. package/locales/ko_KR/market.json +14 -0
  14. package/locales/ko_KR/plugin.json +5 -3
  15. package/locales/ru_RU/chat.json +3 -0
  16. package/locales/ru_RU/error.json +1 -1
  17. package/locales/ru_RU/market.json +14 -0
  18. package/locales/ru_RU/plugin.json +5 -3
  19. package/locales/zh_CN/chat.json +3 -0
  20. package/locales/zh_CN/common.json +0 -1
  21. package/locales/zh_CN/error.json +1 -1
  22. package/locales/zh_CN/market.json +14 -0
  23. package/locales/zh_CN/plugin.json +3 -1
  24. package/locales/zh_TW/chat.json +3 -0
  25. package/locales/zh_TW/error.json +1 -1
  26. package/locales/zh_TW/market.json +14 -0
  27. package/locales/zh_TW/plugin.json +5 -3
  28. package/package.json +1 -1
  29. package/public/images/banner_market_modal.webp +0 -0
  30. package/src/app/chat/features/ChatHeader/ShareButton/Preview.tsx +1 -1
  31. package/src/app/chat/features/ChatHeader/ShareButton/style.ts +1 -0
  32. package/src/app/chat/features/Conversation/ChatList/Extras/Translate.tsx +8 -6
  33. package/src/app/chat/features/SessionListContent/Inbox/index.tsx +3 -1
  34. package/src/app/chat/features/SessionListContent/List/Item/index.tsx +5 -6
  35. package/src/app/chat/settings/features/SubmitAgentButton/index.tsx +0 -1
  36. package/src/app/market/(desktop)/features/Header.tsx +3 -14
  37. package/src/app/market/(mobile)/features/Header.tsx +3 -1
  38. package/src/app/market/features/AgentDetailContent/AgentInfo/index.tsx +5 -1
  39. package/src/app/market/features/AgentDetailContent/AgentInfo/style.ts +2 -1
  40. package/src/app/market/features/ShareAgentButton/Inner.tsx +53 -0
  41. package/src/app/market/features/ShareAgentButton/index.tsx +43 -0
  42. package/src/app/settings/features/SideBar/Item.tsx +6 -1
  43. package/src/app/settings/features/SideBar/index.tsx +3 -1
  44. package/src/const/url.ts +1 -0
  45. package/src/features/AgentInfo/index.tsx +3 -2
  46. package/src/features/AgentSetting/AgentPlugin/MarketList.tsx +22 -26
  47. package/src/features/AgentSetting/AgentPlugin/MarketSettingModal.tsx +9 -2
  48. package/src/features/AgentSetting/AgentPlugin/PluginSettings.tsx +10 -7
  49. package/src/features/PluginDevModal/index.tsx +13 -1
  50. package/src/features/PluginSettings/index.tsx +10 -7
  51. package/src/locales/default/common.ts +0 -2
  52. package/src/locales/default/error.ts +1 -1
  53. package/src/locales/default/market.ts +14 -0
  54. package/.github/workflows/issue-remove-inactive.yml +0 -26
  55. package/.github/workflows/pr-welcome.yml +0 -27
@@ -0,0 +1,72 @@
1
+ name: Issue Auto Comment
2
+ on:
3
+ issues:
4
+ types:
5
+ - opened
6
+ - closed
7
+ - assigned
8
+ pull_request_target:
9
+ types:
10
+ - opened
11
+ - closed
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ run:
18
+ permissions:
19
+ issues: write # for actions-cool/issues-helper to update issues
20
+ pull-requests: write # for actions-cool/issues-helper to update PRs
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - name: Auto Comment on Issues Opened
24
+ uses: wow-actions/auto-comment@v1
25
+ with:
26
+ GITHUB_TOKEN: ${{ secrets.GH_TOKEN}}
27
+ issuesOpened: |
28
+ 👀 @{{ author }}
29
+ Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
30
+ Please make sure you have given us as much context as possible.\
31
+ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
32
+ - name: Auto Comment on Issues Closed
33
+ uses: wow-actions/auto-comment@v1
34
+ with:
35
+ GITHUB_TOKEN: ${{ secrets.GH_TOKEN}}
36
+ issuesClosed: |
37
+ ✅ @{{ author }}
38
+ <br/>
39
+ This issue is closed, If you have any questions, you can comment and reply.\
40
+ 此问题已经关闭。如果您有任何问题,可以留言并回复。
41
+ - name: Auto Comment on Pull Request Opened
42
+ uses: wow-actions/auto-comment@v1
43
+ with:
44
+ GITHUB_TOKEN: ${{ secrets.GH_TOKEN}}
45
+ pullRequestOpened: |
46
+ 👍 @{{ author }}
47
+ <br>
48
+ Thank you for raising your pull request and contributing to our Community
49
+ Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
50
+ If you encounter any problems, please feel free to connect with us.\
51
+ 非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
52
+ 如果您遇到任何问题,请随时与我们联系。
53
+ - name: Auto Comment on Pull Request Merged
54
+ uses: actions-cool/pr-welcome@main
55
+ if: github.event.pull_request.merged == true
56
+ with:
57
+ token: ${{ secrets.GH_TOKEN }}
58
+ comment: |
59
+ ❤️ Great PR @${{ github.event.pull_request.user.login }} ❤️
60
+ <br>
61
+ The growth of project is inseparable from user feedback and contribution, thanks for your contribution!\
62
+ 项目的成长离不开用户反馈和贡献,感谢您的贡献!
63
+ emoji: 'hooray'
64
+ pr-emoji: '+1, heart'
65
+ - name: Remove inactive
66
+ if: github.event.issue.state == 'open' && github.actor == github.event.issue.user.login
67
+ uses: actions-cool/issues-helper@v3
68
+ with:
69
+ actions: 'remove-labels'
70
+ token: ${{ secrets.GH_TOKEN }}
71
+ issue-number: ${{ github.event.issue.number }}
72
+ labels: 'Inactive'
@@ -22,8 +22,9 @@ jobs:
22
22
  labels: '✅ Fixed'
23
23
  inactive-day: 3
24
24
  body: |
25
- Since the issue was labeled with `✅ Fixed`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
26
-
25
+ 👋 @{{ github.event.issue.user.login }}
26
+ <br/>
27
+ Since the issue was labeled with `✅ Fixed`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.\
27
28
  由于该 issue 被标记为已修复,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
28
29
  - name: need reproduce
29
30
  uses: actions-cool/issues-helper@v3
@@ -33,8 +34,9 @@ jobs:
33
34
  labels: '🤔 Need Reproduce'
34
35
  inactive-day: 3
35
36
  body: |
36
- Since the issue was labeled with `🤔 Need Reproduce`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
37
-
37
+ 👋 @{{ github.event.issue.user.login }}
38
+ <br/>
39
+ Since the issue was labeled with `🤔 Need Reproduce`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.\
38
40
  由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
39
41
  - name: need reproduce
40
42
  uses: actions-cool/issues-helper@v3
@@ -44,6 +46,7 @@ jobs:
44
46
  labels: "🙅🏻‍♀️ WON'T DO"
45
47
  inactive-day: 3
46
48
  body: |
47
- Since the issue was labeled with `🙅🏻‍♀️ WON'T DO`, and no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
48
-
49
+ 👋 @{{ github.event.issue.user.login }}
50
+ <br/>
51
+ Since the issue was labeled with `🙅🏻‍♀️ WON'T DO`, and no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.\
49
52
  由于该 issue 被标记为暂不处理,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.96.2](https://github.com/lobehub/lobe-chat/compare/v0.96.1...v0.96.2)
6
+
7
+ <sup>Released on **2023-10-28**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Fix some styles and make updates to various files.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Fix some styles and make updates to various files ([44a5f0a](https://github.com/lobehub/lobe-chat/commit/44a5f0a))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 0.96.1](https://github.com/lobehub/lobe-chat/compare/v0.96.0...v0.96.1)
31
+
32
+ <sup>Released on **2023-10-28**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Add guide to market page.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Add guide to market page ([8a794f9](https://github.com/lobehub/lobe-chat/commit/8a794f9))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ## [Version 0.96.0](https://github.com/lobehub/lobe-chat/compare/v0.95.1...v0.96.0)
6
56
 
7
57
  <sup>Released on **2023-10-27**</sup>
@@ -15,11 +15,14 @@
15
15
  },
16
16
  "newAgent": "Create New Agent",
17
17
  "noDescription": "No description available",
18
+ "pin": "Pin",
19
+ "pinOff": "Unpin",
18
20
  "regenerate": "Regenerate",
19
21
  "roleAndArchive": "Roles and Archives",
20
22
  "searchAgentPlaceholder": "Search agents and conversations...",
21
23
  "send": "Send",
22
24
  "sendPlaceholder": "Enter chat content...",
25
+ "sessionList": "Assistant List",
23
26
  "shareModal": {
24
27
  "download": "Download Screenshot",
25
28
  "imageType": "Image Format",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "pluginSettings": {
3
3
  "desc": "Complete the following configuration to start using this plugin",
4
- "title": "{{name}} Plugin Configuration"
4
+ "title": "{{name}} Plugin Settings"
5
5
  },
6
6
  "response": {
7
7
  "400": "Sorry, the server does not understand your request. Please make sure your request parameters are correct.",
@@ -1,5 +1,19 @@
1
1
  {
2
2
  "addAgent": "Add Agent",
3
+ "guide": {
4
+ "func1": {
5
+ "desc1": "Enter the settings page you want to submit to the assistant by clicking on the settings icon in the upper right corner of the chat window.",
6
+ "desc2": "Click on the 'Submit to Assistant Market' button in the upper right corner.",
7
+ "tag": "Method 1",
8
+ "title": "Submit via LobeChat"
9
+ },
10
+ "func2": {
11
+ "button": "Go to Github Assistant Repository",
12
+ "desc": "If you want to add the assistant to the index, create an entry in the plugins directory using agent-template.json or agent-template-full.json, write a brief description and appropriate tags, and then create a pull request.",
13
+ "tag": "Method 2",
14
+ "title": "Submit via Github"
15
+ }
16
+ },
3
17
  "search": {
4
18
  "placeholder": "Search agent name, description or keywords..."
5
19
  },
@@ -2,7 +2,9 @@
2
2
  "debug": {
3
3
  "arguments": "Arguments",
4
4
  "function_call": "Function Call",
5
- "response": "Response"
5
+ "response": "Response",
6
+ "off": "Turn off debug",
7
+ "on": "View plugin invocation information"
6
8
  },
7
9
  "dev": {
8
10
  "confirmDeleteDevPlugin": "Are you sure you want to delete this local plugin? Once deleted, it cannot be recovered.",
@@ -89,8 +91,8 @@
89
91
  }
90
92
  },
91
93
  "loading": {
92
- "content": "Loading...",
93
- "plugin": "Plugin is running..."
94
+ "plugin": "Plugin is running...",
95
+ "content": "Calling plugin..."
94
96
  },
95
97
  "pluginList": "Plugin List",
96
98
  "plugins": {
@@ -15,11 +15,14 @@
15
15
  },
16
16
  "newAgent": "新しいエージェントを作成",
17
17
  "noDescription": "説明はありません",
18
+ "pin": "ピン留め",
19
+ "pinOff": "ピン留め解除",
18
20
  "regenerate": "再生成",
19
21
  "roleAndArchive": "役割とアーカイブ",
20
22
  "searchAgentPlaceholder": "エージェントと会話を検索...",
21
23
  "send": "送信",
22
24
  "sendPlaceholder": "チャット内容を入力...",
25
+ "sessionList": "セッションリスト",
23
26
  "shareModal": {
24
27
  "download": "スクリーンショットをダウンロード",
25
28
  "imageType": "画像形式",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "pluginSettings": {
3
3
  "desc": "以下の設定を完了すると、プラグインを使用することができます",
4
- "title": "{{name}}プラグインの設定"
4
+ "title": "{{name}} プラグイン設定"
5
5
  },
6
6
  "response": {
7
7
  "400": "申し訳ありませんが、サーバーはリクエストを理解できません。リクエストパラメータが正しいかどうか確認してください",
@@ -1,5 +1,19 @@
1
1
  {
2
2
  "addAgent": "助手を追加する",
3
+ "guide": {
4
+ "func1": {
5
+ "desc1": "セッションウィンドウで右上隅の設定にアクセスして、アシスタントの設定ページに移動します。",
6
+ "desc2": "右上隅の「アシスタントマーケットに送信」ボタンをクリックします。",
7
+ "tag": "方法1",
8
+ "title": "LobeChatを使用して送信する"
9
+ },
10
+ "func2": {
11
+ "button": "GitHubのアシスタントリポジトリに移動する",
12
+ "desc": "アシスタントをインデックスに追加したい場合は、agent-template.jsonまたはagent-template-full.jsonを使用して、pluginsディレクトリにエントリを作成し、簡単な説明と適切なタグを付けてプルリクエストを作成します。",
13
+ "tag": "方法2",
14
+ "title": "GitHubを使用して送信する"
15
+ }
16
+ },
3
17
  "search": {
4
18
  "placeholder": "助手の名前、説明、またはキーワードを検索..."
5
19
  },
@@ -2,7 +2,9 @@
2
2
  "debug": {
3
3
  "arguments": "引数",
4
4
  "function_call": "関数呼び出し",
5
- "response": "レスポンス"
5
+ "response": "レスポンス",
6
+ "off": "デバッグをオフにする",
7
+ "on": "プラグイン呼び出し情報を表示する"
6
8
  },
7
9
  "dev": {
8
10
  "confirmDeleteDevPlugin": "このローカルプラグインを削除しますか?削除後は元に戻せません。",
@@ -88,8 +90,8 @@
88
90
  }
89
91
  },
90
92
  "loading": {
91
- "content": "データの取得中...",
92
- "plugin": "プラグインの実行中..."
93
+ "plugin": "プラグインの実行中...",
94
+ "content": "プラグインを呼び出しています..."
93
95
  },
94
96
  "pluginList": "プラグインリスト",
95
97
  "plugins": {
@@ -15,11 +15,14 @@
15
15
  },
16
16
  "newAgent": "새 도우미 만들기",
17
17
  "noDescription": "설명 없음",
18
+ "pin": "고정",
19
+ "pinOff": "고정 해제",
18
20
  "regenerate": "재생성",
19
21
  "roleAndArchive": "역할 및 아카이브",
20
22
  "searchAgentPlaceholder": "도우미 및 대화 검색...",
21
23
  "send": "보내기",
22
24
  "sendPlaceholder": "대화 내용 입력...",
25
+ "sessionList": "도우미 목록",
23
26
  "shareModal": {
24
27
  "download": "스크린샷 다운로드",
25
28
  "imageType": "이미지 형식",
@@ -1,5 +1,19 @@
1
1
  {
2
2
  "addAgent": "보조 프로그램 추가",
3
+ "guide": {
4
+ "func1": {
5
+ "desc1": "세션 창에서 오른쪽 상단 설정으로 이동하여 도우미를 제출할 설정 페이지로 이동합니다.",
6
+ "desc2": "도우미 마켓에 제출 버튼을 클릭합니다.",
7
+ "tag": "방법 1",
8
+ "title": "LobeChat을 통해 제출하기"
9
+ },
10
+ "func2": {
11
+ "button": "Github 도우미 저장소로 이동",
12
+ "desc": "도우미를 색인에 추가하려면 agent-template.json 또는 agent-template-full.json을 사용하여 plugins 디렉토리에 항목을 작성하고 간단한 설명과 적절한 태그를 추가한 다음 풀 리퀘스트를 생성하십시오.",
13
+ "tag": "방법 2",
14
+ "title": "Github을 통해 제출하기"
15
+ }
16
+ },
3
17
  "search": {
4
18
  "placeholder": "보조 프로그램 이름, 설명 또는 키워드 검색..."
5
19
  },
@@ -2,7 +2,9 @@
2
2
  "debug": {
3
3
  "arguments": "함수 호출 인수",
4
4
  "function_call": "함수 호출",
5
- "response": "응답"
5
+ "response": "응답",
6
+ "off": "디버그 끄기",
7
+ "on": "플러그인 호출 정보 보기"
6
8
  },
7
9
  "dev": {
8
10
  "confirmDeleteDevPlugin": "로컬 플러그인을 삭제하시겠습니까? 삭제 후에는 복구할 수 없습니다.",
@@ -88,8 +90,8 @@
88
90
  }
89
91
  },
90
92
  "loading": {
91
- "content": "데이터 가져오는 중...",
92
- "plugin": "플러그인 실행 중..."
93
+ "plugin": "플러그인 실행 중...",
94
+ "content": "플러그인 호출 중..."
93
95
  },
94
96
  "pluginList": "플러그인 목록",
95
97
  "plugins": {
@@ -15,11 +15,14 @@
15
15
  },
16
16
  "newAgent": "Создать помощника",
17
17
  "noDescription": "Нет описания",
18
+ "pin": "Закрепить",
19
+ "pinOff": "Открепить",
18
20
  "regenerate": "Сгенерировать заново",
19
21
  "roleAndArchive": "Роль и архив",
20
22
  "searchAgentPlaceholder": "Поиск помощников и разговоров...",
21
23
  "send": "Отправить",
22
24
  "sendPlaceholder": "Введите текст сообщения...",
25
+ "sessionList": "Список помощников",
23
26
  "shareModal": {
24
27
  "download": "Скачать скриншот",
25
28
  "imageType": "Тип изображения",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "pluginSettings": {
3
3
  "desc": "Чтобы начать использовать этот плагин, выполните следующую конфигурацию",
4
- "title": "{{name}} Конфигурация плагина"
4
+ "title": "{{name}} Настройки плагина"
5
5
  },
6
6
  "response": {
7
7
  "400": "Извините, сервер не понимает ваш запрос. Убедитесь в правильности параметров запроса",
@@ -1,5 +1,19 @@
1
1
  {
2
2
  "addAgent": "Добавить агента",
3
+ "guide": {
4
+ "func1": {
5
+ "desc1": "Перейдите на страницу настроек, нажав на значок в правом верхнем углу окна сеанса.",
6
+ "desc2": "Нажмите кнопку \"Отправить в магазин помощников\" в правом верхнем углу.",
7
+ "tag": "Метод 1",
8
+ "title": "Отправка через LobeChat"
9
+ },
10
+ "func2": {
11
+ "button": "Перейти в репозиторий помощника на Github",
12
+ "desc": "Если вы хотите добавить помощник в индекс, создайте запись в файле agent-template.json или agent-template-full.json в каталоге плагинов, напишите краткое описание и соответствующие теги, а затем создайте запрос на извлечение.",
13
+ "tag": "Метод 2",
14
+ "title": "Отправка через Github"
15
+ }
16
+ },
3
17
  "search": {
4
18
  "placeholder": "Введите название или ключевое слово помощника..."
5
19
  },
@@ -2,7 +2,9 @@
2
2
  "debug": {
3
3
  "arguments": "Аргументы вызова",
4
4
  "function_call": "Вызов функции",
5
- "response": "Ответ"
5
+ "response": "Ответ",
6
+ "off": "Выключить отладку",
7
+ "on": "Просмотр информации о вызове плагина"
6
8
  },
7
9
  "dev": {
8
10
  "confirmDeleteDevPlugin": "Вы собираетесь удалить этот локальный плагин. После удаления его будет невозможно восстановить. Вы уверены, что хотите удалить этот плагин?",
@@ -88,8 +90,8 @@
88
90
  }
89
91
  },
90
92
  "loading": {
91
- "content": "Получение данных...",
92
- "plugin": "Выполнение плагина..."
93
+ "plugin": "Выполнение плагина...",
94
+ "content": "Вызов плагина..."
93
95
  },
94
96
  "pluginList": "Список плагинов",
95
97
  "plugins": {
@@ -15,11 +15,14 @@
15
15
  },
16
16
  "newAgent": "新建助手",
17
17
  "noDescription": "暂无描述",
18
+ "pin": "置顶",
19
+ "pinOff": "取消置顶",
18
20
  "regenerate": "重新生成",
19
21
  "roleAndArchive": "角色与记录",
20
22
  "searchAgentPlaceholder": "搜索助手和对话...",
21
23
  "send": "发送",
22
24
  "sendPlaceholder": "输入聊天内容...",
25
+ "sessionList": "助手列表",
23
26
  "shareModal": {
24
27
  "download": "下载截图",
25
28
  "imageType": "图片格式",
@@ -51,7 +51,6 @@
51
51
  "reset": "重置",
52
52
  "retry": "重试",
53
53
  "send": "发送",
54
- "sessionList": "助手列表",
55
54
  "setting": "设置",
56
55
  "share": "分享",
57
56
  "stop": "停止",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "pluginSettings": {
3
3
  "desc": "完成以下配置,即可开始使用该插件",
4
- "title": "{{name}}插件配置"
4
+ "title": "{{name}} 插件配置"
5
5
  },
6
6
  "response": {
7
7
  "400": "很抱歉,服务器不明白您的请求,请确认您的请求参数是否正确",
@@ -1,5 +1,19 @@
1
1
  {
2
2
  "addAgent": "添加助手",
3
+ "guide": {
4
+ "func1": {
5
+ "desc1": "在会话窗口中通过右上角设置进入你想提交助手的设置页面;",
6
+ "desc2": "点击右上角提交到助手市场按钮。",
7
+ "tag": "方法一",
8
+ "title": "通过 LobeChat 提交"
9
+ },
10
+ "func2": {
11
+ "button": "前往 Github 助手仓库",
12
+ "desc": "如果您想将助手添加到索引中,请使用 agent-template.json 或 agent-template-full.json 在 plugins 目录中创建一个条目,编写简短的描述并适当标记,然后创建一个拉取请求。",
13
+ "tag": "方法二",
14
+ "title": "通过 Github 提交"
15
+ }
16
+ },
3
17
  "search": {
4
18
  "placeholder": "搜索助手名称介绍或关键词..."
5
19
  },
@@ -2,6 +2,8 @@
2
2
  "debug": {
3
3
  "arguments": "调用参数",
4
4
  "function_call": "函数调用",
5
+ "off": "关闭调试",
6
+ "on": "查看插件调用信息",
5
7
  "response": "返回结果"
6
8
  },
7
9
  "dev": {
@@ -88,7 +90,7 @@
88
90
  }
89
91
  },
90
92
  "loading": {
91
- "content": "数据获取中...",
93
+ "content": "调用插件中...",
92
94
  "plugin": "插件运行中..."
93
95
  },
94
96
  "pluginList": "插件列表",
@@ -15,11 +15,14 @@
15
15
  },
16
16
  "newAgent": "新建助手",
17
17
  "noDescription": "暫無描述",
18
+ "pin": "置頂",
19
+ "pinOff": "取消置頂",
18
20
  "regenerate": "重新生成",
19
21
  "roleAndArchive": "角色與記錄",
20
22
  "searchAgentPlaceholder": "搜索助手和對話...",
21
23
  "send": "發送",
22
24
  "sendPlaceholder": "輸入聊天內容...",
25
+ "sessionList": "助手列表",
23
26
  "shareModal": {
24
27
  "download": "下載截圖",
25
28
  "imageType": "圖片格式",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "pluginSettings": {
3
3
  "desc": "完成以下設定後,即可開始使用此外掛",
4
- "title": "{{name}} 外掛設定"
4
+ "title": "{{name}} 插件設定"
5
5
  },
6
6
  "response": {
7
7
  "400": "抱歉,伺服器無法理解您的請求。請確認您的請求參數是否正確。",
@@ -1,5 +1,19 @@
1
1
  {
2
2
  "addAgent": "新增助理",
3
+ "guide": {
4
+ "func1": {
5
+ "desc1": "在會話視窗中通過右上角設置進入你想提交助手的設置頁面;",
6
+ "desc2": "點擊右上角提交到助手市場按鈕。",
7
+ "tag": "方法一",
8
+ "title": "通過 LobeChat 提交"
9
+ },
10
+ "func2": {
11
+ "button": "前往 Github 助手倉庫",
12
+ "desc": "如果您想將助手添加到索引中,請使用 agent-template.json 或 agent-template-full.json 在 plugins 目錄中創建一個條目,編寫簡短的描述並適當標記,然後創建一個拉取請求。",
13
+ "tag": "方法二",
14
+ "title": "通過 Github 提交"
15
+ }
16
+ },
3
17
  "search": {
4
18
  "placeholder": "搜尋助理名稱、描述或關鍵字..."
5
19
  },
@@ -2,7 +2,9 @@
2
2
  "debug": {
3
3
  "arguments": "參數",
4
4
  "function_call": "函式呼叫",
5
- "response": "回應"
5
+ "response": "回應",
6
+ "off": "關閉偵錯",
7
+ "on": "查看插件呼叫資訊"
6
8
  },
7
9
  "dev": {
8
10
  "confirmDeleteDevPlugin": "您確定要刪除此本機外掛嗎?一旦刪除,將無法復原。",
@@ -89,8 +91,8 @@
89
91
  }
90
92
  },
91
93
  "loading": {
92
- "content": "載入中...",
93
- "plugin": "外掛執行中..."
94
+ "plugin": "外掛執行中...",
95
+ "content": "呼叫插件中..."
94
96
  },
95
97
  "pluginList": "外掛清單",
96
98
  "plugins": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.96.0",
3
+ "version": "0.96.2",
4
4
  "description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -130,7 +130,7 @@ const Preview = memo<PreviewProps>(({ withSystemRole, imageType, withBackground,
130
130
  </Flexbox>
131
131
  {withSystemRole && systemRole && (
132
132
  <div className={styles.role}>
133
- <Markdown>{systemRole}</Markdown>
133
+ <Markdown className={styles.markdown}>{systemRole}</Markdown>
134
134
  </div>
135
135
  )}
136
136
  </div>
@@ -31,6 +31,7 @@ export const useStyles = createStyles(({ css, token, stylish, cx }, withBackgrou
31
31
  background: ${token.colorBgContainer};
32
32
  border-bottom: 1px solid ${token.colorBorder};
33
33
  `,
34
+ markdown: stylish.markdownInChat,
34
35
  preview: cx(
35
36
  stylish.noScrollbar,
36
37
  css`
@@ -12,10 +12,8 @@ import { ChatTranslate } from '@/types/chatMessage';
12
12
 
13
13
  import BubblesLoading from '../Loading';
14
14
 
15
- const useStyles = createStyles(({ css }) => ({
16
- container: css`
17
- margin-top: 8px;
18
- `,
15
+ const useStyles = createStyles(({ stylish }) => ({
16
+ markdown: stylish.markdownInChat,
19
17
  }));
20
18
 
21
19
  interface TranslateProps extends ChatTranslate {
@@ -24,7 +22,7 @@ interface TranslateProps extends ChatTranslate {
24
22
  }
25
23
 
26
24
  const Translate = memo<TranslateProps>(({ content = '', from, to, id, loading }) => {
27
- const { theme } = useStyles();
25
+ const { theme, styles } = useStyles();
28
26
  const { t } = useTranslation('common');
29
27
  const [show, setShow] = useState(true);
30
28
  const clearTranslate = useSessionStore((s) => s.clearTranslate);
@@ -67,7 +65,11 @@ const Translate = memo<TranslateProps>(({ content = '', from, to, id, loading })
67
65
  />
68
66
  </Flexbox>
69
67
  </Flexbox>
70
- {!show ? null : loading && !content ? <BubblesLoading /> : <Markdown>{content}</Markdown>}
68
+ {!show ? null : loading && !content ? (
69
+ <BubblesLoading />
70
+ ) : (
71
+ <Markdown className={styles.markdown}>{content}</Markdown>
72
+ )}
71
73
  </Flexbox>
72
74
  );
73
75
  });