<?php

use boru\boruai\Openai\OpenAIChat;
use boru\boruai\Models\Response;

require __DIR__."/init.php";


//simple question and answer
$chat = new OpenAIChat();
$chat->addMessage("user", "Hello, how are you?");
print_r($chat->run());


//give it some instructions first
$chat = new OpenAIChat();
$chat->addMessage("system", "I am a helpful AI assistant. I can help you with anything you need.");
$chat->addMessage("user", "Can you help me with my homework?");

