Skip to content

Instantly share code, notes, and snippets.

@daaniyaan
daaniyaan / example_args.py
Created June 16, 2023 16:27 — forked from jxnl/example_args.py
Power of pydantic
import openai
import openai_function
@openai_function
def sum(a:int, b:int) -> int:
"""Sum description adds a + b"""
return a + b
completion = openai.ChatCompletion.create(
model="gpt-3.5-turbo-0613",