Skip to content

Instantly share code, notes, and snippets.

View 7thWardMadeMe's full-sized avatar

Stephen P Crump 7thWardMadeMe

  • New Orleans, LA
  • 05:21 (UTC -05:00)
View GitHub Profile
@7thWardMadeMe
7thWardMadeMe / index.js
Created April 17, 2023 09:30 — forked from LearnWebCode/index.js
Example Express app for YouTube WSL video.
const express = require('express')
const mysql = require('mysql2/promise')
const app = express()
let db
async function go() {
db = await mysql.createConnection({
host: 'localhost',
const SECRET_KEY = ENTER YOUR SECRET KEY HERE;
const MAX_TOKENS = 200;
// For more cool AI snippets and demos, follow me on Twitter: https://twitter.com/_abi_
/**
* Completes your prompt with GPT-3
*
* @param {string} prompt Prompt
* @param {number} temperature (Optional) Temperature. 1 is super creative while 0 is very exact and precise. Defaults to 0.4.