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 609e46e commit 63cd91c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ public function controller(Instructrice $instructrice, HubInterface $hub)
}
```

You can use Mercure to update your frontend with streaming, leveraging the partial JSON parsing and deserialization.

Use the `onChunk` callback:
You can use Mercure to update your frontend while the LLM is completing JSON, using the `onChunk` callback:
```php
use AdrienBrault\Instructrice\Instructrice;
use AdrienBrault\Instructrice\LLM\LLMChunk;
Expand Down

0 comments on commit 63cd91c

Please sign in to comment.