fix: channel testing for reverse proxy

This commit is contained in:
ckt1031
2023-07-13 22:07:07 +08:00
parent d68aa4c96f
commit e2f5c1eb8c
3 changed files with 43 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ type GeneralOpenAIRequest struct {
type ChatRequest struct {
Model string `json:"model"`
Messages []Message `json:"messages"`
MaxTokens int `json:"max_tokens"`
MaxTokens *int `json:"max_tokens,omitempty"`
Stream bool `json:"stream"`
}