Skip to content

Instantly share code, notes, and snippets.

@kmad
kmad / openai_schema_example.py
Created June 24, 2023 19:41
Example of using OpenAISchema and Function Calls
import openai
from openai_function_call import OpenAISchema
from pydantic import Field
from typing import List, Any
import requests
from bs4 import BeautifulSoup
def getPage(url):
html = requests.get(url).content
@kmad
kmad / keybase.md
Created April 8, 2019 20:27
Keybase

Keybase proof

I hereby claim:

  • I am kmad on github.
  • I am kmad (https://keybase.io/kmad) on keybase.
  • I have a public key ASA2e6pBmP18A69n4Dk1-axyJWsp9TEBi8K9cQbMCsxSXAo

To claim this, I am signing this object: