Skip to content

Commit

Permalink
docs: reword
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienbrault committed Apr 24, 2024
1 parent fb070ad commit 6d0edb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public function controller(Instructrice $instructrice, HubInterface $hub)
}
```

If you are using mercure to stream updates, you will want to use the `onChunk` argument:
You can use Mercure to update your frontend with streaming, leveraging the partial JSON parsing and deserialization.

Use the `onChunk` callback:
```php
use AdrienBrault\Instructrice\Instructrice;
use AdrienBrault\Instructrice\LLM\LLMChunk;
Expand Down

0 comments on commit 6d0edb8

Please sign in to comment.