Skip to content

Commit 68571f9

Browse files
committed
docs: fix after example rename in #296
1 parent b515355 commit 68571f9

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ $eventDispatcher->addListener(ToolCallsExecuted::class, function (ToolCallsExecu
348348
1. [SerpAPI Tool](examples/toolbox/serpapi.php)
349349
1. [Tavily Tool](examples/toolbox/tavily.php)
350350
1. [Weather Tool with Event Listener](examples/toolbox/weather-event.php)
351-
1. [Wikipedia Tool](examples/anthropic/toolbox.php)
352-
1. [YouTube Transcriber Tool](examples/openai/toolbox.php) (with streaming)
351+
1. [Wikipedia Tool](examples/anthropic/toolcall.php)
352+
1. [YouTube Transcriber Tool](examples/openai/toolcall.php)
353353

354354
### Document Embedding, Vector Stores & Similarity Search (RAG)
355355

examples/openai/toolcall.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
$chain = new Chain($platform, $llm, [$processor], [$processor]);
2929

3030
$messages = new MessageBag(Message::ofUser('Please summarize this video for me: https://www.youtube.com/watch?v=6uXW-ulpj0s'));
31-
$response = $chain->call($messages, [
32-
'stream' => true, // enable streaming of response text
33-
]);
31+
$response = $chain->call($messages);
3432

35-
foreach ($response->getContent() as $word) {
36-
echo $word;
37-
}
38-
echo PHP_EOL;
33+
echo $response->getContent().PHP_EOL;

0 commit comments

Comments
 (0)