Skip to content

Instantly share code, notes, and snippets.

View glaidler's full-sized avatar

Graham Laidler glaidler

View GitHub Profile
@stephenlb
stephenlb / openai-function-calling.js
Last active February 7, 2024 20:27
Using OpenAI's Function Calling with a JavaScript Fetch API.
//
// Import Modules
//
const pubnub = require('pubnub');
const xhr = require('xhr');
const vault = require('vault');
//
// Request Event Handler (Main)
//