These scripts can be run with the following commands, by a super user. This installs a lot of stuff, read first.
You can add -s -- --dry-run
to then end to do a dry run first.
These are tested on an ec2 instance running vscode remote
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use OpenAI\Laravel\Facades\OpenAI; | |
class AssistantController extends Controller | |
{ | |
public function generateAssistantsResponse(Request $request) |
These scripts can be run with the following commands, by a super user. This installs a lot of stuff, read first.
You can add -s -- --dry-run
to then end to do a dry run first.
These are tested on an ec2 instance running vscode remote
create a new Lightsail instance or EC2 instance From the AWS Management Console.
Once you create it, download the associated .pem file. you can be downloaded the default SSH key from your account page. we need to move it to the ~/.ssh directory. You can do so by executing
mv ~/Downloads/pemfile.pem ~/.ssh/pemfile.pem