fix: update auth header to use token for Jupyter Server Proxy compatibility
Browse files
app.py
CHANGED
|
@@ -223,7 +223,7 @@ async def api_get_telemetry():
|
|
| 223 |
url = f"{base_url}/v1/models"
|
| 224 |
headers = {}
|
| 225 |
if AMD_INFERENCE_TOKEN:
|
| 226 |
-
headers["Authorization"] = f"
|
| 227 |
|
| 228 |
try:
|
| 229 |
async with httpx.AsyncClient(timeout=3.0) as client:
|
|
|
|
| 223 |
url = f"{base_url}/v1/models"
|
| 224 |
headers = {}
|
| 225 |
if AMD_INFERENCE_TOKEN:
|
| 226 |
+
headers["Authorization"] = f"token {AMD_INFERENCE_TOKEN}"
|
| 227 |
|
| 228 |
try:
|
| 229 |
async with httpx.AsyncClient(timeout=3.0) as client:
|