Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jul 5, 2023
1 parent ef5da0b commit b9b69af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions agixtsdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ def __init__(self, base_uri: str = None, api_key: str = None):
if not base_uri:
base_uri = "http://localhost:7437"
self.base_uri = base_uri
if api_key:
self.headers = {"Authorization": f"Bearer {api_key}"}
if not api_key:
self.headers = {"Content-Type": "application/json"}
else:
self.headers = {}
self.headers = {
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
}

if self.base_uri[-1] == "/":
self.base_uri = self.base_uri[:-1]

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.9",
version="0.0.10",
description="The AGiXT SDK for Python.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit b9b69af

Please sign in to comment.