Skip to content

Commit b54fdbe

Browse files
committed
fix review comments
1 parent f9ef0b0 commit b54fdbe

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

src/guardrails/nemo_rails_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from nemoguardrails import LLMRails, RailsConfig
77
from nemoguardrails.llm.providers import register_llm_provider
8-
from src.llm_orchestrator_config.llm_cochestrator_constants import (
8+
from src.llm_orchestrator_config.llm_ochestrator_constants import (
99
GUARDRAILS_BLOCKED_PHRASES,
1010
)
1111
from src.utils.cost_utils import get_lm_usage_since

src/llm_orchestration_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from prompt_refine_manager.prompt_refiner import PromptRefinerAgent
2222
from src.response_generator.response_generate import ResponseGeneratorAgent
2323
from src.response_generator.response_generate import stream_response_native
24-
from src.llm_orchestrator_config.llm_cochestrator_constants import (
24+
from src.llm_orchestrator_config.llm_ochestrator_constants import (
2525
OUT_OF_SCOPE_MESSAGE,
2626
TECHNICAL_ISSUE_MESSAGE,
2727
INPUT_GUARDRAIL_VIOLATION_MESSAGE,

src/llm_orchestration_service_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import uvicorn
1212

1313
from llm_orchestration_service import LLMOrchestrationService
14-
from src.llm_orchestrator_config.llm_cochestrator_constants import (
14+
from src.llm_orchestrator_config.llm_ochestrator_constants import (
1515
STREAMING_ALLOWED_ENVS,
1616
STREAM_TIMEOUT_MESSAGE,
1717
RATE_LIMIT_REQUESTS_EXCEEDED_MESSAGE,
@@ -146,6 +146,8 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE
146146
body_json = json_module.loads(body)
147147
chat_id = body_json.get("chatId", "unknown")
148148
except Exception:
149+
# Silently fall back to "unknown" if body parsing fails
150+
# This is a validation error handler, so body is already malformed
149151
pass
150152

151153
# Return SSE format for streaming endpoint

src/llm_orchestrator_config/llm_cochestrator_constants.py renamed to src/llm_orchestrator_config/llm_ochestrator_constants.py

File renamed without changes.

src/response_generator/response_generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import dspy.streaming
88
from dspy.streaming import StreamListener
99

10-
from src.llm_orchestrator_config.llm_cochestrator_constants import OUT_OF_SCOPE_MESSAGE
10+
from src.llm_orchestrator_config.llm_ochestrator_constants import OUT_OF_SCOPE_MESSAGE
1111
from src.utils.cost_utils import get_lm_usage_since
1212
from src.optimization.optimized_module_loader import get_module_loader
1313

0 commit comments

Comments
 (0)