🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"
TypeScript
fix:修改测试连接max-token设置
jiangzj544ff55d2695
diff --git a/pkg/ai/openai_client.go b/pkg/ai/openai_client.goindex 83734fc..bd2c543 100644--- a/pkg/ai/openai_client.go+++ b/pkg/ai/openai_client.go@@ -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 {