refactor: max token; migrate.

This commit is contained in:
2026-05-11 08:51:53 +08:00
parent cb7ed2c4cc
commit 25ed68be27
4 changed files with 340 additions and 2 deletions
+2 -2
View File
@@ -256,7 +256,7 @@ func callAIForAnalysis(prompt string) (*aiAnalysisResult, error) {
},
Temperature: 0.6,
TopP: 0.6,
MaxCompletionTokens: 4000,
MaxCompletionTokens: 8000,
},
)
if err != nil {
@@ -472,7 +472,7 @@ func (tc *TrainingController) streamAIAnalysis(c *gin.Context, prompt string,
},
Temperature: 0.6,
TopP: 0.6,
MaxCompletionTokens: 4000,
MaxCompletionTokens: 8000,
Stream: true,
StreamOptions: &openai.StreamOptions{
IncludeUsage: true,