Skip to content

Commit 5c6b37b

Browse files
author
Myron
committed
Added fix for backoff method type
1 parent 8f2312e commit 5c6b37b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Model/Product/Enricher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Magento\Catalog\Model\Product;
88
use OpenAI\Factory;
99
use OpenAI\Client;
10-
use OpenAI\Responses\Meta;
10+
use OpenAI\Responses\Meta\MetaInformation;
1111
use OpenAI\Exceptions\ErrorException;
1212

1313
class Enricher
@@ -79,7 +79,7 @@ public function enrichAttribute($product, $attributeCode)
7979
}
8080
}
8181

82-
public function backoff(Meta $meta)
82+
public function backoff(MetaInformation $meta)
8383
{
8484
if($meta->requestLimit->remaining < 1) {
8585
sleep($this->strToSeconds($meta->requestLimit->reset));

0 commit comments

Comments
 (0)