Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
blueokanna committed Feb 13, 2024
1 parent 2ab288e commit 5207c4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn time_sync() -> i64 {

### 1.3 Store API Key

Saving Api key and store it in local file which call `chatglm_api_key` txt file:
Saving Api key and store it in local file which call `chatglm_api_key.txt` file:

```
const API_KEY_FILE: &str = "chatglm_api_key.txt";
Expand Down Expand Up @@ -92,7 +92,7 @@ pub fn load_api_key() -> Option<String> {

### 1.4 Save Chat Content file

User chats and AI replies will be stored in `chatglm_history.txt`.
User chats and AI replies will be stored in `chatglm_history.json`.

```
const HISTORY_FILE: &str = "chatglm_history.json";
Expand Down Expand Up @@ -169,5 +169,4 @@ async fn main() {

## 4.Conclusion
>
> Thank you for opening my project, this is a self-developed RustGLM development project, in order to expand different code language calling for the official SDK requirments. I am also working hard to develop and update this project, of course, I personally will continue to develop this project, I also adhere to the principle of open source more, so that everyone can enjoy my project. Finally, I hope more and more people will participate together 🚀 Thank you for seeing the end! 😆👏
> Thank you for opening my project, this is a self-developed RustGLM development project, in order to expand different code language calling for the official SDK requirments. I am also working hard to develop and update this project, of course, I personally will continue to develop this project, I also adhere to the principle of open source more, so that everyone can enjoy my project. Finally, I hope more and more people will participate together 🚀 Thank you for seeing the end! 😆👏
8 changes: 4 additions & 4 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn time_sync() -> i64 {

### 1.3 保存 API 密钥

Saving Api key and store it in local file which call `chatglm_api_key` txt file:
保存 api 密钥并将其存储到本地文件中,该文件称为 `chatglm_api_key.txt` 文件:

```
const API_KEY_FILE: &str = "chatglm_api_key.txt";
Expand All @@ -76,8 +76,8 @@ const API_KEY_FILE: &str = "chatglm_api_key.txt";
}
}
```
**加载 API 密钥:**

**加载 API 密钥:**
```
pub fn load_api_key() -> Option<String> {
match File::open(API_KEY_FILE) {
Expand All @@ -92,7 +92,7 @@ pub fn load_api_key() -> Option<String> {

### 1.4 保存历史聊天记录

保存用户聊天内容和人工智能的历史聊天记录在 `chatglm_history.txt`.
保存用户聊天内容和人工智能的历史聊天记录在 `chatglm_history.json` 文件.

```
const HISTORY_FILE: &str = "chatglm_history.json";
Expand Down Expand Up @@ -162,7 +162,7 @@ async fn main() {
```


> 总体下来,这个项目引入的三种请求方式应该还是比较简单的,目前的**BUG**会尽量修复🥳,也希望各位开发者对这个项目的支持!再次感谢🎉!
> 总体下来,这个项目引入的三种请求方式应该还是比较简单的,目前的 **BUG** 会尽量修复🥳,也希望各位开发者对这个项目的支持!再次感谢🎉!
---

## 4.总结
Expand Down

0 comments on commit 5207c4c

Please sign in to comment.