Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Mar 21, 2023
1 parent eb519cc commit d898d28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions web/src/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default {
deleteMessageConfirm: '是否删除此消息?',
deleteChatSessionsConfirm: '确定删除此记录?',
clearHistoryConfirm: '确定清空聊天记录?',
contextLength: '上下文数量, 默认10 (会话开始的2条 + 最近的8条)',
},
setting: {
setting: '设置',
Expand Down
10 changes: 5 additions & 5 deletions web/src/views/chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -513,14 +513,14 @@ onUnmounted(() => {
<NModal v-model:show="showModal">
<NCard style="width: 600px" title="会话设置" :bordered="false" size="huge" role="dialog" aria-modal="true">
<!-- <template #header-extra>
Oops!
</template> -->
<div>上下文数量, 默认10 (会话开始的2条+ 最近的8条)</div>
Oops!
</template> -->
<div> {{ $t(chat.contextLength) }}</div>
<NSlider v-model:value="sliderValue" :min="1" :max="20" :tooltip="false" />
<NInputNumber v-model:value="sliderValue" size="small" />
<!-- <template #footer>
Footer
</template> -->
Footer
</template> -->
</NCard>
</NModal>
<div id="scrollRef" ref="scrollRef" class="h-full overflow-hidden overflow-y-auto">
Expand Down

0 comments on commit d898d28

Please sign in to comment.