You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeErrorOpenAI\Responses\FineTunes\RetrieveResponseHyperparams::__construct(): Argument#1 ($batchSize) must be of type int, null given, called in /code/vendor/openai-php/client/src/Responses/FineTunes/RetrieveResponseHyperparams.php on line 39
at vendor/openai-php/client/src/Responses/FineTunes/RetrieveResponseHyperparams.php:2016▕ * @use ArrayAccessible<array{batch_size: int, learning_rate_multiplier: float, n_epochs: int, prompt_loss_weight: float}>
17▕ */
18▕ useArrayAccessible;
19▕
➜ 20▕ privatefunction __construct(
21▕ public readonly int $batchSize,
22▕ public readonly float $learningRateMultiplier,
23▕ public readonly int $nEpochs,
24▕ public readonly float $promptLossWeight,
+3 vendor frames
4 app/App/Console/Commands/GenerateFineTuning.php
OpenAI\Resources\FineTunes::create(["file-XXXXXXXXXXXXX", "davinci"])
+13 vendor frames
18 artisan:37Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Looking the api $batchSize is optional param and null by default
The text was updated successfully, but these errors were encountered:
I facing a problem with the default params in open ai api fine tunes
Triyng creating a fine tunes with this code:
result in a trhow
Looking the api $batchSize is optional param and null by default
The text was updated successfully, but these errors were encountered: