Skip to content

Commit 44a7e6b

Browse files
authored
feat: support system prompt (#13)
1 parent d3d34d1 commit 44a7e6b

39 files changed

+1382
-458
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ macOS platforms.
2020
- Tablet-optimized for iPad and Android tablets
2121
- Fast launch and responsive performance
2222
- Multiple AI model support and switching
23+
- Fully Customizable System Prompt Assistant (New feature from v1.9.0 🎉)
2324

24-
**New Features For Amazon Nova 🎉🎉🎉**
25+
**Supported Features For Amazon Nova**
2526

2627
- Stream conversations with Amazon Nova Micro, Lite and Pro
2728
- Understand images, documents and videos with Nova Lite and Pro
@@ -43,6 +44,15 @@ macOS platforms.
4344
<img src="assets/avif/video_summary.avif" width=24%>
4445
</div>
4546

47+
**System Prompt Assistant**: Useful Preset System Prompts with Full Management Capabilities (Add/Edit/Sort/Delete)
48+
49+
<div style="display: flex; flex-direction: 'row'; background-color: #888888;">
50+
<img src="assets/avif/prompt_translate.avif" width=24%>
51+
<img src="assets/avif/prompt_code.avif" width=24%>
52+
<img src="assets/avif/prompt_add_chef.avif" width=24%>
53+
<img src="assets/avif/prompt_edit.avif" width=24%>
54+
</div>
55+
4656
**Creative Image Suite**: Generation, Style Replication, Background Removal & Replacement
4757

4858
<div style="display: flex; flex-direction: 'row'; background-color: #888888;">
@@ -82,7 +92,7 @@ Ensure you have access to Amazon Bedrock foundation models. SwiftChat default se
8292

8393
- Region: `us-west-2`
8494
- Text Model: `Amazon Nova Pro`
85-
- Image Model: `Stable Image Core 1.0`
95+
- Image Model: `Stable Diffusion 3.5 Large`
8696

8797
If you are using the image generation feature, please make sure you have enabled access to the `Amazon Nova Lite` model.
8898
Please follow the [Amazon Bedrock User Guide](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access-modify.html) to
@@ -168,6 +178,11 @@ We feature streamlined chat History, Settings pages, and intuitive Usage statist
168178

169179
![](assets/history_settings.png)
170180

181+
Similarly, for the Mac version, we not only support the display of history, but also added a permanent sidebar
182+
display mode after v1.9.0.
183+
184+
![](assets/mac_ui.png)
185+
171186
### Message Handling
172187

173188
- [x] Text copy support:

README_CN.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ macOS 等多个平台。
1212

1313
- 与 AI 进行实时流式聊天
1414
- 支持丰富的 Markdown 渲染:表格、代码块、LaTeX 公式等
15+
- 可实现完全自定义的系统提示词助手
1516
- 带进度的 AI 图像生成
1617
- 多模态支持(相机拍照、图片选择和文档上传)
1718
- 对话历史记录列表查看和管理
1819
- 跨平台支持(Android、iOS、macOS)
1920
- 针对 iPad 和 Android 平板电脑进行 UI 优化
2021
- 快速启动和响应性能
2122
- 支持多种 AI 模型及切换
23+
- 支持完全自定义的系统提示词助手 (v1.9.0 的新功能 🎉)
2224

23-
**Amazon Nova 新功能 🎉🎉🎉**
25+
**Amazon Nova 功能支持**
2426

2527
- 支持与 Amazon Nova Micro、Lite 和 Pro 进行流式对话
2628
- 支持 Nova Lite 和 Pro 对图片、文档及视频内容的理解
@@ -40,6 +42,16 @@ macOS 等多个平台。
4042
<img src="assets/avif/video_summary.avif" width=24%>
4143
</div>
4244

45+
46+
**系统提示词助手**: 提供实用的内置系统提示词,同时支持添加、编辑、排序和删除系统提示词来构建你自己的助手
47+
48+
<div style="display: flex; flex-direction: 'row'; background-color: #888888;">
49+
<img src="assets/avif/prompt_translate.avif" width=24%>
50+
<img src="assets/avif/prompt_code.avif" width=24%>
51+
<img src="assets/avif/prompt_add_chef.avif" width=24%>
52+
<img src="assets/avif/prompt_edit.avif" width=24%>
53+
</div>
54+
4355
**图像创作助手**:图像生成、风格复制、背景移除与替换
4456

4557
<div style="display: flex; flex-direction: 'row'; background-color: #888888;">
@@ -75,7 +87,7 @@ macOS 等多个平台。
7587

7688
- 区域: `us-west-2`
7789
- 文本模型: `Amazon Nova Pro`
78-
- 图像模型: `Stable Image Core 1.0`
90+
- 图像模型: `Stable Diffusion 3.5 Large`
7991

8092
如果您要使用图片生成功能,请确保已开启 `Amazon Nova Lite` 模型的访问权限。您可以参考 [Amazon Bedrock 用户指南](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access-modify.html)
8193
来启用您的模型。
@@ -154,6 +166,10 @@ macOS 等多个平台。
154166

155167
![](assets/history_settings_zh.png)
156168

169+
对于 Mac 版本,我们不仅支持历史记录的显示,还在 1.9.0 版本后添加了侧边栏固定显示模式。
170+
171+
![](assets/mac_ui.png)
172+
157173
### 消息处理
158174

159175
- [x] 文本复制支持:

assets/avif/prompt_add_chef.avif

183 KB
Binary file not shown.

assets/avif/prompt_code.avif

119 KB
Binary file not shown.

assets/avif/prompt_edit.avif

52.6 KB
Binary file not shown.

assets/avif/prompt_translate.avif

76.7 KB
Binary file not shown.

assets/mac_ui.png

128 KB
Loading

react-native/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ module.exports = {
66
'prettier',
77
'@react-native',
88
],
9+
ignorePatterns: ['android/**', 'ios/**'],
910
};

react-native/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ PODS:
13061306
- ReactCommon/turbomodule/bridging
13071307
- ReactCommon/turbomodule/core
13081308
- Yoga
1309-
- RNScreens (3.32.0):
1309+
- RNScreens (4.4.0):
13101310
- DoubleConversion
13111311
- glog
13121312
- hermes-engine
@@ -1623,7 +1623,7 @@ SPEC CHECKSUMS:
16231623
RNGestureHandler: 8dbcccada4a7e702e7dec9338c251b1cf393c960
16241624
RNReactNativeHapticFeedback: ec56a5f81c3941206fd85625fa669ffc7b4545f9
16251625
RNReanimated: f4ff116e33e0afc3d127f70efe928847c7c66355
1626-
RNScreens: 5aeecbb09aa7285379b6e9f3c8a3c859bb16401c
1626+
RNScreens: 024c5cb8569dea6667b5c73e6c119beb83f686f0
16271627
RNShare: 0fad69ae2d71de9d1f7b9a43acf876886a6cb99c
16281628
RNSVG: 7ff26379b2d1871b8571e6f9bc9630de6baf9bdf
16291629
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d

react-native/ios/SwiftChat/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleDevelopmentRegion</key>
88
<string>en</string>
99
<key>CFBundleDisplayName</key>
10-
<string>SwiftChat</string>
10+
<string></string>
1111
<key>CFBundleExecutable</key>
1212
<string>$(EXECUTABLE_NAME)</string>
1313
<key>CFBundleIdentifier</key>

0 commit comments

Comments
 (0)