title.go 449 B

123456789101112
  1. package prompt
  2. import "github.com/opencode-ai/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. }