Skip to content

Commit 8f9e8e4

Browse files
José Carlos MontañezJosé Carlos Montañez
authored andcommitted
updated test
1 parent 2d1aa46 commit 8f9e8e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/commonTest/kotlin/com/xebia/functional/xef/conversation/ConversationSpec.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ConversationSpec :
5252
}
5353

5454
""""
55-
| GPT_3_5_TURBO model has 4097 max context length
55+
| GPT_3_5_TURBO model has 16385 max context length
5656
| when the number of token in the conversation is greater than
5757
| the space allotted for the message history in the prompt configuration
5858
| the number of messages in the request must have fewer messages than
@@ -83,7 +83,7 @@ class ConversationSpec :
8383
val memories = vectorStore.memories(model, conversationId, totalTokens)
8484

8585
// The messages in the request doesn't contain the message response
86-
val messagesSizePlusMessageResponse = lastRequest.messages.size + 1
86+
val messagesSizePlusMessageResponse = lastRequest.messages.size
8787

8888
messagesSizePlusMessageResponse shouldBeLessThan memories.size
8989
}

0 commit comments

Comments
 (0)