refactor: max token; migrate.
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user