Skip to content

Commit

Permalink
v0.0.71
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Sep 13, 2024
1 parent a9f32f2 commit 1ffcf33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion agixtsdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1892,9 +1892,14 @@ def create_extension(
extension_file = requests.get(extension_download)
extension_dir = os.path.join(os.getcwd(), "extensions")
extension_file_path = os.path.join(extension_dir, file_name)
extension_content = extension_file.content
os.makedirs(extension_dir, exist_ok=True)
with open(extension_file_path, "wb") as f:
f.write(extension_file.content)
f.write(f"# Generated from OpenAPI JSON URL: {openapi_json_url}\n".encode())
f.write(
f"# Date Generated: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}\n".encode()
)
f.write(extension_content)
return f"{extension_name} extension created and downloaded to {extension_file_path}"

def get_dpo_response(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="agixtsdk",
version="0.0.70",
version="0.0.71",
description="The AGiXT SDK for Python.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 1ffcf33

Please sign in to comment.