fix:修改测试连接max-token设置

This commit is contained in:
jiangzj
2026-01-19 16:15:10 +08:00
parent 4ff31d3fdb
commit 544ff55d26

View File

@@ -238,7 +238,7 @@ func (c *OpenAIClient) TestConnection() error {
},
}
_, err := c.ChatCompletion(messages, WithMaxTokens(10))
_, err := c.ChatCompletion(messages, WithMaxTokens(50))
if err != nil {
fmt.Printf("OpenAI: TestConnection failed: %v\n", err)
} else {