• Czas czytania ~ :czas min
  • 08.11.2022

Klient PHP OpenAI to doładowany klient PHP API, który pozwala na interakcję z API OpenAI.

$client = OpenAI::client('YOUR_API_KEY');
 
$result = $client->completions()->create([
    'model' => 'davinci',
    'prompt' => 'PHP is',
]);
 
echo $result['choices'][0]['text'];
// an open-source, widely-used, server-side scripting language.

Comments

No comments yet
Yurij Finiv

Yurij Finiv

Full stack

O

Professional Fullstack Developer with extensive experience in website and desktop application development. Proficient in a wide range of tools and technologies, including Bootstrap, Tailwind, HTML5, CSS3, PUG, JavaScript, Alpine.js, jQuery, PHP, MODX, and Node.js. Skilled in website development using Symfony, MODX, and Laravel. Experience: Contributed to the development and translation of MODX3 i...

O autorze CrazyBoy49z
WORK EXPERIENCE
Kontakt
Ukraine, Lutsk
+380979856297