Skip to content

Commit 1ffcf33

Browse files
committed
v0.0.71
1 parent a9f32f2 commit 1ffcf33

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

agixtsdk/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1892,9 +1892,14 @@ def create_extension(
18921892
extension_file = requests.get(extension_download)
18931893
extension_dir = os.path.join(os.getcwd(), "extensions")
18941894
extension_file_path = os.path.join(extension_dir, file_name)
1895+
extension_content = extension_file.content
18951896
os.makedirs(extension_dir, exist_ok=True)
18961897
with open(extension_file_path, "wb") as f:
1897-
f.write(extension_file.content)
1898+
f.write(f"# Generated from OpenAPI JSON URL: {openapi_json_url}\n".encode())
1899+
f.write(
1900+
f"# Date Generated: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}\n".encode()
1901+
)
1902+
f.write(extension_content)
18981903
return f"{extension_name} extension created and downloaded to {extension_file_path}"
18991904

19001905
def get_dpo_response(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name="agixtsdk",
11-
version="0.0.70",
11+
version="0.0.71",
1212
description="The AGiXT SDK for Python.",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)