We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe4825 commit 79cf197Copy full SHA for 79cf197
src/Services/Grammar/OpenAiService.php
@@ -18,7 +18,7 @@ public function __construct(
18
public function fixAll(array $texts): array
19
{
20
return collect($texts)
21
- ->chunk(50)
+ ->chunk(20)
22
->flatMap(function (Collection $chunk) {
23
$response = OpenAI::chat()->create([
24
'model' => $this->model,
src/Services/Translate/OpenAiService.php
public function translateAll(array $texts, string $targetLocale): array
->flatMap(function (Collection $chunk) use ($targetLocale) {
0 commit comments