File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 88
99setup (
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" ,
You can’t perform that action at this time.
0 commit comments