SuperCoder/internal/llm/prompt/title.go

14 lines
520 B
Go
Raw Normal View History

2025-03-27 22:35:48 +01:00
package prompt
2025-04-24 18:25:52 +02:00
import "github.com/opencode-ai/opencode/internal/llm/models"
func TitlePrompt(_ models.ModelProvider) string {
2025-03-27 22:35:48 +01:00
return `you will generate a short title based on the first message a user begins a conversation with
- ensure it is not more than 50 characters long
- the title should be a summary of the user's message
2025-04-21 19:48:36 +02:00
- it should be one line long
2025-03-27 22:35:48 +01:00
- do not use quotes or colons
2025-05-03 01:53:58 +05:30
- the entire text you return will be used as the title
- never return anything that is more than one sentence (one line) long`
2025-03-27 22:35:48 +01:00
}