Skip to content

Commit

Permalink
doc: 更新文档默认不裁剪消息长度
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Nov 15, 2024
1 parent 6471259 commit ba7e330
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions doc/cn/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ OPENAI_API_BASE,GOOGLE_COMPLETIONS_API,MISTRAL_API_BASE,COHERE_API_BASE,ANTHROPI

### 历史记录配置

| KEY | 名称 | 默认值 | 描述 |
|--------------------|----------|---------|--------------------|
| AUTO_TRIM_HISTORY | 自动裁剪历史记录 | `true` | 为避免4096字符限制,自动裁剪消息 |
| MAX_HISTORY_LENGTH | 最大历史记录长度 | `20` | 保留的最大历史记录条数 |
| MAX_TOKEN_LENGTH | 最大令牌长度 | `20480` | 历史记录的最大令牌长度 |
| KEY | 名称 | 默认值 | 描述 |
|--------------------|----------|-----------|---------------------|
| AUTO_TRIM_HISTORY | 自动裁剪历史记录 | `true` | 为避免4096字符限制,自动裁剪消息 |
| MAX_HISTORY_LENGTH | 最大历史记录长度 | `20` | 保留的最大历史记录条数 |
| MAX_TOKEN_LENGTH | 最大令牌长度 | `-1`(不裁剪) | 以现在模型的价格只需要裁剪消息条数即可 |

### 特性开关

Expand Down
10 changes: 5 additions & 5 deletions doc/en/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ OPENAI_API_BASE,GOOGLE_COMPLETIONS_API,MISTRAL_API_BASE,COHERE_API_BASE,ANTHROPI

### History configuration

| KEY | Name | Default | Description |
|--------------------|---------------------------------------|---------|---------------------------------------------------------------|
| AUTO_TRIM_HISTORY | Automatic trimming of message history | `true` | Automatically trim messages to avoid the 4096 character limit |
| MAX_HISTORY_LENGTH | Maximum length of message history | `20` | Maximum number of message history entries to keep |
| MAX_TOKEN_LENGTH | Maximum token length | `20480` | Maximum token length for message history |
| KEY | Name | Default | Description |
|--------------------|---------------------------------------|--------------|------------------------------------------------------------------------------------|
| AUTO_TRIM_HISTORY | Automatic trimming of message history | `true` | Automatically trim messages to avoid the 4096 character limit |
| MAX_HISTORY_LENGTH | Maximum length of message history | `20` | Maximum number of message history entries to keep |
| MAX_TOKEN_LENGTH | Maximum token length | `-1` (uncut) | At the current model price, it only requires trimming the number of message items. |

### Feature configuration

Expand Down
2 changes: 1 addition & 1 deletion wrangler-example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ GROUP_CHAT_BOT_ENABLE = 'true'
## 最大历史记录长度
#MAX_HISTORY_LENGTH = 20
## 最大消息长度
#MAX_TOKEN_LENGTH = 2048
#MAX_TOKEN_LENGTH = -1


## -- 特性开关 --
Expand Down

0 comments on commit ba7e330

Please sign in to comment.