Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/cute-nights-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mrck-labs/grid-core": patch
---

fix tool calling while streaming
4 changes: 3 additions & 1 deletion packages/core/src/services/base.llm.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,14 @@ export const baseLLMService = (
aiModel = openai(model);
}

const result = await streamText({
const result = streamText({
model: aiModel,
messages: messages as any,
temperature,
maxOutputTokens,
tools: tools && tools.length > 0 ? (tools as any) : undefined,
// Enable multi-step tool execution (same as non-streaming)
stopWhen: stepCountIs(12),
// Forward provider-specific options
...(providerOptions ? { providerOptions: providerOptions as any } : {}),
onStepFinish: (step) => {
Expand Down
Loading