Fixing a bunch of bugs and making some improvements #19

Merged
skobkin merged 6 commits from fix_chat_type_middleware_nil_pointer into main 2024-03-12 20:08:50 +00:00
Showing only changes of commit bfacbb9f98 - Show all commits

View file

@ -72,8 +72,9 @@ func (l *LlmConnector) Summarize(text string, model string) (string, error) {
Messages: []openai.ChatCompletionMessage{ Messages: []openai.ChatCompletionMessage{
{ {
Role: openai.ChatMessageRoleSystem, Role: openai.ChatMessageRoleSystem,
Content: "You are a short digest editor. Summarize the text you received " + Content: "You're a text shortener. Give a very brief summary of the main facts " +
"as a list of bullet points with most important facts from the text. " + "point by point. Format them as a list of bullet points. " +
"Avoid any commentaries and value judgement on the matter. " +
"If possible, use the same language as the original text.", "If possible, use the same language as the original text.",
}, },
}, },