Skip to content

Commit

Permalink
fix(compose-agent): continue when rusult is null
Browse files Browse the repository at this point in the history
  • Loading branch information
luoling8192 committed Jan 6, 2025
1 parent 77ec600 commit 04e0887
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/neuri/src/openai/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export function composeAgent(options: {
continue

let strRes = ''

if (result == null)
continue

if (typeof result === 'string')
strRes = result
else
Expand Down

0 comments on commit 04e0887

Please sign in to comment.