BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Adjust the data dimension of the image knowledge base
hwliang65b1b17fc957
diff --git a/core/internal/service/askai/openai.go b/core/internal/service/askai/openai.goindex 5c1b21de..085bfc7f 100644--- a/core/internal/service/askai/openai.go+++ b/core/internal/service/askai/openai.go@@ -477,8 +477,8 @@ func (o *OpenAI) GetImagesPrompt() (string, int) {return "", 0}- prompt := DataToText(images, "Images", []string{"UpdateTime", "ImageId"}) // Convert the images configuration to a text representation- tokens, _ := o.CalculateTokens(prompt, true) // Calculate the tokens for the images prompt+ prompt := DataToText(images, "Images", []string{"UpdateTime", "ImageId", "Filename", "ImageTag"}) // Convert the images configuration to a text representation+ tokens, _ := o.CalculateTokens(prompt, true) // Calculate the tokens for the images promptreturn prompt, tokens}