Skip to content

Instantly share code, notes, and snippets.

View PeterUtekal's full-sized avatar
🎯
Focusing

Peter Utekal PeterUtekal

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Learning Hub for Employees</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
<style>
@PeterUtekal
PeterUtekal / index.php
Created August 10, 2023 15:27
OpenAI Functions
$response = $client->chat()->create([
'model' => 'gpt-3.5-turbo-16k-0613',
'messages' => $messages,
'functions' => [
[
'name' => 'search_job_post',
'description' => 'Search for a job based on a search query.',
'parameters' => [
'type' => 'object',
'properties' => [
<div className='dropdown dropdown-end'>
<label tabIndex={0} className='btn btn-ghost btn-circle avatar'>
<div className='w-10 rounded-full'>
<img
src={
userDetails?.avatar_url
? "https://kfeokhrdlerhktzxnsym.supabase.co/storage/v1/object/public/avatars/" +
userDetails.avatar_url
: "/images/user.jpeg"
}