title.go 512 B

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