mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-07-06 02:47:50 +02:00
fix comment + import
This commit is contained in:
@@ -12,7 +12,7 @@ def extract_guardrail_service_authorization_from_headers(
|
||||
request: Request,
|
||||
) -> Tuple[Optional[str], Optional[str]]:
|
||||
"""
|
||||
Extracts the optional Invariant-Guardrail-Service authorization header from the request.
|
||||
Extracts the optional Invariant-Guardrails-Authorization authorization header from the request.
|
||||
|
||||
This header can be specifified to use a different API key for guardrailing compared to
|
||||
Explorer interactions.
|
||||
|
||||
@@ -7,7 +7,7 @@ import fastapi
|
||||
|
||||
from common.config_manager import GatewayConfig
|
||||
from common.guardrails import GuardrailRuleSet, Guardrail, GuardrailAction
|
||||
from gateway.common.authorization import (
|
||||
from common.authorization import (
|
||||
extract_guardrail_service_authorization_from_headers,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user