This commit is contained in:
2026-08-23 12:40:59 +02:00
parent bd762d1ccf
commit 5340158228
11 changed files with 342 additions and 51 deletions
+6 -4
View File
@@ -800,8 +800,9 @@ func (e *Engine) enhance(ctx context.Context, in ProductInput, category string,
logEnhancePrompt(in, catUID, catName, system, user)
started := time.Now()
comp, obj, err := CompleteJSON(ctx, e.Completer, system, user, CompleteOptions{
MaxTokens: MaxTokensEnhance,
Temperature: DefaultStructuredTemp,
MaxTokens: MaxTokensEnhance,
Temperature: DefaultStructuredTemp,
ReasoningEffort: "low",
})
elapsed := time.Since(started)
if err != nil {
@@ -891,8 +892,9 @@ func (e *Engine) enhance(ctx context.Context, in ProductInput, category string,
retryUser := user + descriptionFormulaRetrySuffix
retryStarted := time.Now()
comp2, obj2, err2 := CompleteJSON(ctx, e.Completer, system, retryUser, CompleteOptions{
MaxTokens: MaxTokensEnhance,
Temperature: DefaultStructuredTemp,
MaxTokens: MaxTokensEnhance,
Temperature: DefaultStructuredTemp,
ReasoningEffort: "low",
})
elapsed += time.Since(retryStarted)
comp.PromptTokens += comp2.PromptTokens