gg / etc /tool /openapi.py
mfoud444's picture
first commit
79859e3
raw
history blame contribute delete
216 Bytes
import json
from g4f.api import create_app
app = create_app()
with open("openapi.json", "w") as f:
data = json.dumps(app.openapi())
f.write(data)
print(f"openapi.json - {round(len(data)/1024, 2)} kbytes")