11 lines
272 B
Python
11 lines
272 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class OpenAIBase(BaseModel):
|
|
"""
|
|
This class defines the JSON schema sent to OpenAI. Its schema is
|
|
injected directly into the OpenAI prompt.
|
|
"""
|
|
|
|
__doc__ = "" # we don't want to include the docstring in the JSON schema
|