• Время чтения ~0 мин
  • 08.11.2022

PHP-клиент OpenAI — это клиент PHP API с наддувом, который позволяет вам взаимодействовать с 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

Про мене

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...

Об авторе CrazyBoy49z
WORK EXPERIENCE
Контакты
Ukraine, Lutsk
+380979856297