Logidav Docs

OpenAi
in package

Table of Contents

Properties

$apiSecretKey  : string

Methods

__construct()  : mixed
QueueService constructor.
generateAsirGroupProductTitleAndDescription()  : mixed
generateNotioProductDescription()  : array<string|int, mixed>
generateProductsText()  : mixed
generateProductTitleBasedOnLongDescription()  : mixed
openaiCompletion()  : mixed
openAiTranslate()  : mixed

Properties

$apiSecretKey

protected string $apiSecretKey

Methods

__construct()

QueueService constructor.

public __construct(ContainerInterface $container) : mixed
Parameters
$container : ContainerInterface

generateAsirGroupProductTitleAndDescription()

public generateAsirGroupProductTitleAndDescription(mixed $photo, mixed $material, mixed $category, mixed $label, mixed $color, mixed $title[, mixed $doTitleGeneration = Null ][, mixed $longDescription = Null ]) : mixed
Parameters
$photo : mixed
$material : mixed
$category : mixed
$label : mixed
$color : mixed
$title : mixed
$doTitleGeneration : mixed = Null
$longDescription : mixed = Null

generateNotioProductDescription()

public generateNotioProductDescription(string $firstImage, string $title, string $material, string $category, string $color, string $newProductLabel, string $notioDescription) : array<string|int, mixed>
Parameters
$firstImage : string
$title : string
$material : string
$category : string
$color : string
$newProductLabel : string
$notioDescription : string
Return values
array<string|int, mixed>

generateProductsText()

public generateProductsText(mixed $openAiUrl, mixed $prompt[, mixed $firstImage = null ]) : mixed
Parameters
$openAiUrl : mixed
$prompt : mixed
$firstImage : mixed = null

generateProductTitleBasedOnLongDescription()

public generateProductTitleBasedOnLongDescription(mixed $photo, mixed $material, mixed $category, mixed $longDescription, mixed $color, mixed $openAiUrl) : mixed
Parameters
$photo : mixed
$material : mixed
$category : mixed
$longDescription : mixed
$color : mixed
$openAiUrl : mixed

openaiCompletion()

public openaiCompletion(mixed $prompt[, mixed $max_tokens = 50 ][, mixed $model = null ]) : mixed
Parameters
$prompt : mixed
$max_tokens : mixed = 50
$model : mixed = null

openAiTranslate()

public openAiTranslate(mixed $stringsToTranslate, mixed $lang, mixed $sourceLang) : mixed
Parameters
$stringsToTranslate : mixed
$lang : mixed
$sourceLang : mixed

        
On this page

Search results