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
Add Domain field to chatInfo structure
hwliang54e51cef01d8
diff --git a/core/internal/service/askai/chat.go b/core/internal/service/askai/chat.goindex 329ba3ad..1b284d7a 100644--- a/core/internal/service/askai/chat.go+++ b/core/internal/service/askai/chat.go@@ -58,6 +58,7 @@ type File struct {type ChatInfo struct {ChatId string `json:"chatId"` // Unique identifier for the chat+ Domain string `json:"domain"` // Domain associated with the chatPrompt string `json:"prompt"` // Prompt or question for the chatTitle string `json:"title"` // Title of the chatSupplierName string `json:"supplierName"` // Name of the AI model supplier@@ -180,6 +181,7 @@ func CreateChat(Domain string, AddType int, TempName string) (string, error) {// This function should handle the logic for initializing a chat with default valueschatInfo := ChatInfo{ChatId: chatId,+ Domain: Domain,Prompt: "",Title: TempName,SupplierName: "",