Skip to content

Instantly share code, notes, and snippets.

View raphael2692's full-sized avatar
🎯
Focusing

Raffaele Spataro raphael2692

🎯
Focusing
View GitHub Profile
@raphael2692
raphael2692 / main.py
Created December 1, 2023 23:27
"Hello world" of OpenAI function_calling
# main.py
import openai
import json
# Load OPENA_API_KEY from .env
from dotenv import load_dotenv
load_dotenv()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raphael2692
raphael2692 / index.html
Created June 1, 2018 12:01
Random Quote Generator (#FCC, working share button)
<div class="main">
<blockquote>
<p id="quote"></p>
<small><cite id="author"></cite></small>
</blockquote>
<div class="text-center">
<a type="button" id="refresh" class="btn btn-default">
More wisdom</a>
</div>