File size: 216 Bytes
79859e3
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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")