Skip to content

Commit afe6e9a

Browse files
readme
1 parent c850397 commit afe6e9a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Now you can use the python SDK!
2727
```Python
2828
from groundlight import Groundlight
2929

30-
# Load the API client
30+
# Load the API client. This defaults to the prod endpoint, but you can specify a different
31+
# endpoint like so: gl = Groundlight(endpoint="https://device.integ.positronix.ai/device-api")
3132
gl = Groundlight()
3233

3334
# Call an API method (e.g., retrieve a list of detectors)

src/groundlight/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ class Groundlight(DetectorsApi, ImageQueriesApi):
2424
```
2525
"""
2626

27-
def __init__(self, host: str = "https://device.positronix.ai/device-api"):
27+
def __init__(self, endpoint: str = "https://device.positronix.ai/device-api"):
2828
"""
29-
:param host: optionally specify a different endpoint. E.g.
29+
:param endpoint: optionally specify a different endpoint. E.g.
3030
- Prod (default): https://device.positronix.ai/device-api
3131
- Integ: https://device.integ.positronix.ai/device-api
3232
- Localhost tunnel to a GPU instance: http://localhost:8000/device-api
3333
"""
3434
# Specify the endpoint
35-
configuration = Configuration(host=host)
35+
configuration = Configuration(host=endpoint)
3636

3737
# Retrieve the API token from environment variable
3838
try:

0 commit comments

Comments
 (0)