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 8f2312e commit 5c6b37bCopy full SHA for 5c6b37b
Model/Product/Enricher.php
@@ -7,7 +7,7 @@
7
use Magento\Catalog\Model\Product;
8
use OpenAI\Factory;
9
use OpenAI\Client;
10
-use OpenAI\Responses\Meta;
+use OpenAI\Responses\Meta\MetaInformation;
11
use OpenAI\Exceptions\ErrorException;
12
13
class Enricher
@@ -79,7 +79,7 @@ public function enrichAttribute($product, $attributeCode)
79
}
80
81
82
- public function backoff(Meta $meta)
+ public function backoff(MetaInformation $meta)
83
{
84
if($meta->requestLimit->remaining < 1) {
85
sleep($this->strToSeconds($meta->requestLimit->reset));
0 commit comments