title.go

 1package prompt
 2
 3import "github.com/charmbracelet/crush/internal/llm/models"
 4
 5func TitlePrompt(_ models.InferenceProvider) string {
 6	return `you will generate a short title based on the first message a user begins a conversation with
 7- ensure it is not more than 50 characters long
 8- the title should be a summary of the user's message
 9- it should be one line long
10- do not use quotes or colons
11- the entire text you return will be used as the title
12- never return anything that is more than one sentence (one line) long`
13}