|
|
@@ -328,12 +328,20 @@ func buildContents(
|
|
|
default:
|
|
|
// Handle regular messages
|
|
|
openaiContent := message.ParseContent()
|
|
|
+ if len(openaiContent) == 0 {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+
|
|
|
for _, part := range openaiContent {
|
|
|
msgPart := buildMessageParts(part)
|
|
|
if msgPart.InlineData != nil {
|
|
|
imageTasks = append(imageTasks, msgPart)
|
|
|
}
|
|
|
|
|
|
+ if msgPart.Text == "" {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+
|
|
|
content.Parts = append(content.Parts, msgPart)
|
|
|
}
|
|
|
}
|