Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func assistantMessageParam(m lipapi.Message) (anthropic.MessageParam, error) {
return anthropic.MessageParam{}, fmt.Errorf("anthropic: assistant message may only contain text parts in this adapter")
}
}
var blocks []anthropic.ContentBlockParamUnion
blocks := make([]anthropic.ContentBlockParamUnion, 0, len(m.Parts))
for _, p := range m.Parts {
if strings.TrimSpace(p.Text) == "" {
continue
Expand Down