fix: filter whitespace-only text content in Claude to OpenAI translation

Remove redundant existence check since TrimSpace handles empty strings
This commit is contained in:
huynguyen03.dev
2025-12-07 16:08:12 +07:00
parent f092801b61
commit 549c0c2c5a

View File

@@ -243,9 +243,6 @@ func convertClaudeContentPart(part gjson.Result) (string, bool) {
switch partType {
case "text":
if !part.Get("text").Exists() {
return "", false
}
text := part.Get("text").String()
if strings.TrimSpace(text) == "" {
return "", false