File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ Now you can use the python SDK!
2727``` Python
2828from 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")
3132gl = Groundlight()
3233
3334# 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):
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 :
You can’t perform that action at this time.
0 commit comments