Skip to content

Commit 88a1a9c

Browse files
committed
🦄 refactor(maxTokens): 增大默认长度
1 parent a3aa451 commit 88a1a9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chat.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ func checkChatRequest(cr *ChatRequest) {
8787
if cr.TopP == 0 {
8888
cr.TopP = 1
8989
}
90+
if cr.MaxTokens == 0 {
91+
cr.MaxTokens = 8191
92+
}
9093
}
9194

9295
// api /chat/completions 的实现

0 commit comments

Comments
 (0)