mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-14 21:23:30 +00:00
fix: filter empty messages in toModelMessage (#4811)
This commit is contained in:
parent
cc78d50ef6
commit
13f89fdb8f
1 changed files with 1 additions and 1 deletions
|
|
@ -666,7 +666,7 @@ export namespace MessageV2 {
|
|||
}
|
||||
}
|
||||
|
||||
return convertToModelMessages(result)
|
||||
return convertToModelMessages(result.filter((msg) => msg.parts.length > 0))
|
||||
}
|
||||
|
||||
export const stream = fn(Identifier.schema("session"), async function* (sessionID) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue