File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ Now you can use the python SDK!
27
27
``` Python
28
28
from groundlight import Groundlight
29
29
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")
31
32
gl = Groundlight()
32
33
33
34
# Call an API method (e.g., retrieve a list of detectors)
Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ class Groundlight(DetectorsApi, ImageQueriesApi):
24
24
```
25
25
"""
26
26
27
- def __init__ (self , host : str = "https://device.positronix.ai/device-api" ):
27
+ def __init__ (self , endpoint : str = "https://device.positronix.ai/device-api" ):
28
28
"""
29
- :param host : optionally specify a different endpoint. E.g.
29
+ :param endpoint : optionally specify a different endpoint. E.g.
30
30
- Prod (default): https://device.positronix.ai/device-api
31
31
- Integ: https://device.integ.positronix.ai/device-api
32
32
- Localhost tunnel to a GPU instance: http://localhost:8000/device-api
33
33
"""
34
34
# Specify the endpoint
35
- configuration = Configuration (host = host )
35
+ configuration = Configuration (host = endpoint )
36
36
37
37
# Retrieve the API token from environment variable
38
38
try :
You can’t perform that action at this time.
0 commit comments