(text string)
| 119 | } |
| 120 | |
| 121 | func normalizeShortTextOutput(text string) string { |
| 122 | text = strings.TrimSpace(text) |
| 123 | if text == "" { |
| 124 | return "" |
| 125 | } |
| 126 | |
| 127 | text = strings.Trim(text, "\"'`") |
| 128 | return strings.Join(strings.Fields(text), " ") |
| 129 | } |
| 130 | |
| 131 | type generatedTitle struct { |
| 132 | Title string `json:"title" description:"Short descriptive chat title"` |
no test coverage detected