Spaces:
Running
Running
Use raw Router model ids in API preflight
Browse files
backend/routes/v1_responses.py
CHANGED
|
@@ -114,7 +114,7 @@ async def _preflight_hf_router_access(model: str, hf_token: str | None) -> None:
|
|
| 114 |
|
| 115 |
normalized_model = cache_key[1]
|
| 116 |
payload = {
|
| 117 |
-
"model":
|
| 118 |
"messages": [{"role": "user", "content": "Reply with OK."}],
|
| 119 |
"max_tokens": 1,
|
| 120 |
}
|
|
|
|
| 114 |
|
| 115 |
normalized_model = cache_key[1]
|
| 116 |
payload = {
|
| 117 |
+
"model": normalized_model,
|
| 118 |
"messages": [{"role": "user", "content": "Reply with OK."}],
|
| 119 |
"max_tokens": 1,
|
| 120 |
}
|