mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-09 07:33:41 +08:00
perf: use max_tokens to reduce token consuming
This commit is contained in:
@@ -21,8 +21,9 @@ type Message struct {
|
||||
}
|
||||
|
||||
type ChatRequest struct {
|
||||
Model string `json:"model"`
|
||||
Messages []Message `json:"messages"`
|
||||
Model string `json:"model"`
|
||||
Messages []Message `json:"messages"`
|
||||
MaxTokens int `json:"max_tokens"`
|
||||
}
|
||||
|
||||
type TextRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user