From 2114520ed2d5912b7027a99b013d27104e0f5079 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sun, 24 Nov 2024 22:20:08 +0100 Subject: Improve slim docker build, Add openapi.json to release --- etc/tool/openapi.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 etc/tool/openapi.py (limited to 'etc') diff --git a/etc/tool/openapi.py b/etc/tool/openapi.py new file mode 100644 index 00000000..83359e4e --- /dev/null +++ b/etc/tool/openapi.py @@ -0,0 +1,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") \ No newline at end of file -- cgit v1.2.3