Files
ds2api/internal/httpapi/gemini/output_clean.go
2026-04-26 06:58:20 +08:00

15 lines
338 B
Go

package gemini
import textclean "ds2api/internal/textclean"
//nolint:unused // retained for native Gemini output post-processing path.
func cleanVisibleOutput(text string, stripReferenceMarkers bool) string {
if text == "" {
return text
}
if stripReferenceMarkers {
text = textclean.StripReferenceMarkers(text)
}
return text
}