13 lines
244 B
Go
Raw Normal View History

2024-11-06 01:06:38 +08:00
package nlp
import (
"catface/app/global/variable"
"catface/app/utils/nlp/glm"
)
func GenerateTitle(content string) string {
2024-11-06 01:27:14 +08:00
message := variable.PromptsYml.GetString("Prompt.Title") + content
2024-11-06 01:06:38 +08:00
title, _ := glm.Chat(message)
return title
}