Skip to content

Instantly share code, notes, and snippets.

View StanGirard's full-sized avatar
💠

Stan Girard StanGirard

💠
View GitHub Profile
@StanGirard
StanGirard / functions.py
Created June 19, 2023 13:35 — forked from Shaunwei/functions.py
Best OpenAI function calling template
from pydantic import BaseModel, Field
from tenacity import retry, stop_after_attempt
class FakeGoogleSearch(BaseModel):
query: str = Field(..., description='The query of Google search')
class FakeGoogleSearchResponse(BaseModel):
result: str = Field(..., description='The search result')