mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-13 17:22:37 +02:00
agents.ts: return all msg types in sync mode
This commit is contained in:
parent
27ad5d675a
commit
62dc05e36a
1 changed files with 1 additions and 1 deletions
|
|
@ -1209,7 +1209,7 @@ export async function getResponse(
|
|||
},
|
||||
};
|
||||
for await (const event of streamResponse(workflow, projectTools, messages)) {
|
||||
if ('role' in event && event.role === 'assistant') {
|
||||
if ('role' in event) {
|
||||
out.push(event);
|
||||
}
|
||||
if ('tokens' in event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue