chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-10 16:20:16 +00:00
parent ce061bf661
commit cc2915be16
4 changed files with 13 additions and 16 deletions
+1 -4
View File
@@ -348,10 +348,7 @@ const step = (state: ParserState, event: OpenAIChatEvent) =>
const finishEvents = (state: ParserState): ReadonlyArray<LLMEvent> => {
const hasToolCalls = state.toolCallEvents.length > 0
const reason = state.finishReason === "stop" && hasToolCalls ? "tool-calls" : state.finishReason
return [
...state.toolCallEvents,
...(reason ? [LLMEvent.requestFinish({ reason, usage: state.usage })] : []),
]
return [...state.toolCallEvents, ...(reason ? [LLMEvent.requestFinish({ reason, usage: state.usage })] : [])]
}
// =============================================================================