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:
1 parent
f092801b61
commit
549c0c2c5a
1 file changed
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user