pip install nootropic
from nootropic import Nootropic
from openai import OpenAI
from os import environ as env
client = OpenAI(
api_key=env.get('OPENAI_API_KEY'),
)
# Wrap your client with Nootropic
client = Nootropic(
client,
# prefix='Prefix for every user message.',
# postfix='Postfix for every user message.',
# system='System prompt.',
# disable_cache=False,
)