Skip to content

Commit

Permalink
Default context count (#506)
Browse files Browse the repository at this point in the history
* Update maxLength to 6 in chat session configuration

* Increase chat session max length to 10
  • Loading branch information
swuecho authored Jul 17, 2024
1 parent 8addef7 commit 0f65d66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/api/chat_session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const getChatSessionDefault = async (title: string): Promise<Chat.Session
title,
isEdit: false,
uuid,
maxLength: 6,
maxLength: 10,
temperature: 1,
model: default_model.name,
maxTokens: default_model.defaultToken,
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/chat/components/Session/SessionConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ interface ModelType {
const modelRef: Ref<ModelType> = ref({
chatModel: session.value?.model ?? 'gpt-3.5-turbo',
summarizeMode: session.value?.summarizeMode ?? false,
contextCount: session.value?.maxLength ?? 6,
contextCount: session.value?.maxLength ?? 10,
temperature: session.value?.temperature ?? 1.0,
maxTokens: session.value?.maxTokens ?? 2048,
topP: session.value?.topP ?? 1.0,
Expand Down

0 comments on commit 0f65d66

Please sign in to comment.