mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-30 19:33:49 +08:00
switch to konik.ai
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
import requests
|
||||
API_HOST = os.getenv('API_HOST', 'https://api.commadotai.com')
|
||||
API_HOST = os.getenv('API_HOST', 'https://api.konik.ai')
|
||||
|
||||
class CommaApi:
|
||||
def __init__(self, token=None):
|
||||
|
||||
@@ -64,7 +64,7 @@ def auth_redirect_link(method):
|
||||
}[method]
|
||||
|
||||
params = {
|
||||
'redirect_uri': f"https://api.springerelectronics.com/v2/auth/{provider_id}/redirect/",
|
||||
'redirect_uri': f"https://api.konik.ai/v2/auth/{provider_id}/redirect/",
|
||||
'state': f'service,localhost:{PORT}',
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ segment = int(sys.argv[2])
|
||||
frame = int(sys.argv[3])
|
||||
camera = cameras[sys.argv[4]] if len(sys.argv) > 4 and sys.argv[4] in cameras else "cameras"
|
||||
|
||||
url = f'https://api.commadotai.com/v1/route/{route}/files'
|
||||
url = f'https://api.konik.ai/v1/route/{route}/files'
|
||||
r = requests.get(url, headers={"Authorization": f"JWT {jwt}"}, timeout=10)
|
||||
assert r.status_code == 200
|
||||
print("got api response")
|
||||
|
||||
Reference in New Issue
Block a user