fix: removing maxtokens

This commit is contained in:
ckt1031 2023-07-13 21:28:14 +08:00
parent 47cb77de53
commit d68aa4c96f

View File

@ -119,12 +119,11 @@ func testChannel(channel *model.Channel, request ChatRequest) error {
func buildTestRequest() *ChatRequest {
testRequest := &ChatRequest{
Model: "", // this will be set later
MaxTokens: 1,
Stream: true,
}
testMessage := Message{
Role: "user",
Content: "hi",
Content: "say hi word only",
}
testRequest.Messages = append(testRequest.Messages, testMessage)
return testRequest