MCPcopy Index your code
hub / github.com/coder/coder / normalizeTitleOutput

Function normalizeTitleOutput

coderd/x/chatd/quickgen.go:573–579  ·  view source on GitHub ↗
(title string)

Source from the content-addressed store, hash-verified

571}
572
573func normalizeTitleOutput(title string) string {
574 title = normalizeShortTextOutput(title)
575 if title == "" {
576 return ""
577 }
578 return truncateRunes(title, 80)
579}
580
581func fallbackChatTitle(message string) string {
582 const maxWords = 6

Callers 1

Calls 2

normalizeShortTextOutputFunction · 0.85
truncateRunesFunction · 0.70

Tested by

no test coverage detected