chore: drop model-test endpoint types only the removed tab used

This commit is contained in:
9qeklajc
2026-10-03 00:58:59 +02:00
parent f59f40108b
commit 7b20815414
2 changed files with 3 additions and 4 deletions
-3
View File
@@ -20,9 +20,6 @@ models_router = APIRouter()
_MODEL_TEST_ENDPOINT_PATHS = {
"chat-completions": "chat/completions",
"completions": "completions",
"embeddings": "embeddings",
"responses": "responses",
}
# Cap the caller-supplied test payload to avoid forwarding oversized bodies
@@ -31,9 +31,11 @@ async def test_model_test_endpoint_requires_admin_auth(
@pytest.mark.integration
@pytest.mark.asyncio
@pytest.mark.parametrize("endpoint_type", ["../../abuse", "embeddings"])
async def test_model_test_endpoint_rejects_unsupported_endpoint_type(
integration_client: AsyncClient,
integration_session: Any,
endpoint_type: str,
) -> None:
admin_token = "test-admin-token-model-test"
admin_sessions[admin_token] = int(time.time()) + 3600
@@ -71,7 +73,7 @@ async def test_model_test_endpoint_rejects_unsupported_endpoint_type(
"/api/models/test",
json={
"model_id": "model-a",
"endpoint_type": "../../abuse",
"endpoint_type": endpoint_type,
"request_data": {"messages": []},
},
)