From 06d86c82be51f8fef173b4e0dd319bcca90c11d4 Mon Sep 17 00:00:00 2001 From: Aleksandar Vucenovic Date: Thu, 4 Jun 2026 11:52:37 +0200 Subject: [PATCH] Fix article typo and broken method chain in max-tokens README example. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two fixes in the 'Text generation using max tokens' example: - 'a 80-verse' -> 'an 80-verse' ('eighty' takes 'an'). - Remove the stray semicolon after usingMaxTokens(8000) so the fluent chain correctly continues to ->generateText(). Co-authored-by: Karolína Vyskočilová <3611726+vyskoczilova@users.noreply.github.com> Co-Authored-By: Claude Opus 4.8 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b55305f..a65e5835 100644 --- a/README.md +++ b/README.md @@ -72,10 +72,10 @@ $texts = AiClient::prompt('Write a 2-verse poem about PHP.') ```php use WordPress\AiClient\AiClient; -$text = AiClient::prompt('Write a 80-verse poem with long stanzas about PHP.') +$text = AiClient::prompt('Write an 80-verse poem with long stanzas about PHP.') ->usingSystemInstruction('You are a famous poet from the 17th century.') ->usingTemperature(0.8) - ->usingMaxTokens(8000); + ->usingMaxTokens(8000) ->generateText(); ```