Skip to content

Instantly share code, notes, and snippets.

View nullcline's full-sized avatar
🐧
afk fishing

Andrew nullcline

🐧
afk fishing
View GitHub Profile
@nullcline
nullcline / baka_trace.py
Created March 9, 2023 08:20
tsundere error traces
import traceback
import openai
import sys
# list models
models = openai.Model.list()
def baka(error, character="tsundere",):
exc_type, exc_value, exc_traceback = sys.exc_info()
traceback_list = traceback.extract_tb(exc_traceback)