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"
|
2025-04-16 20:06:23 +02:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
- the entire text you return will be used as the title`
|
|
|
|
|
}
|