mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-04 16:35:27 +08:00
15 lines
338 B
Go
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
|
|
}
|