Skip to content

Commit 51efcb3

Browse files
authored
Fixed tool calls message ID reset to empty (#886)
1 parent ef06ebc commit 51efcb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Providers/Gemini/Handlers/Stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ protected function handleToolCalls(
351351
$depth++;
352352
if ($depth < $request->maxSteps()) {
353353
$previousUsage = $this->state->usage();
354-
$this->state->reset();
354+
$this->state->reset()->withMessageId(EventID::generate());
355355
$this->currentThoughtSignature = null;
356356
$nextResponse = $this->sendRequest($request);
357357
yield from $this->processStream($nextResponse, $request, $depth);

0 commit comments

Comments
 (0)