Skip to content

fix: rename realtimeLlmEventParser.ts to match import case (Linux build fix)#1660

Open
stochastic-sisyphus wants to merge 1 commit into
Portkey-AI:2.0.0from
stochastic-sisyphus:fix/realtime-llm-parser-case
Open

fix: rename realtimeLlmEventParser.ts to match import case (Linux build fix)#1660
stochastic-sisyphus wants to merge 1 commit into
Portkey-AI:2.0.0from
stochastic-sisyphus:fix/realtime-llm-parser-case

Conversation

@stochastic-sisyphus
Copy link
Copy Markdown

Summary

  • Renames src/services/realtimeLlmEventParser.ts to src/services/realtimeLLMEventParser.ts so it matches the case used by three importing handlers.

Why

macOS and Windows file systems are case-insensitive by default, so this issue is invisible in local dev. Linux Docker builds fail at npm run build with:

RollupError: Could not resolve "../services/realtimeLLMEventParser" from "src/handlers/realtimeHandlerNode.ts"

The three importers all reference '../services/realtimeLLMEventParser' (capital LLM):

  • src/handlers/realtimeHandler.ts:11
  • src/handlers/realtimeHandlerNode.ts:7
  • src/handlers/websocketUtils.ts:4

Test plan

  • docker build -t portkeyai/gateway:2.0.0 . succeeds on Linux (verified after combining with the separate akto/zscaler path fix).

Three handler files (src/handlers/realtimeHandler.ts,
src/handlers/realtimeHandlerNode.ts, src/handlers/websocketUtils.ts)
import from '../services/realtimeLLMEventParser' (capitalized "LLM"),
but the file on disk is realtimeLlmEventParser.ts (lowercase "llm").

This works on case-insensitive file systems (macOS default,
Windows default) but breaks Linux Docker builds with:
  RollupError: Could not resolve "../services/realtimeLLMEventParser"
  from "src/handlers/realtimeHandlerNode.ts"

Rename the file to match the imports.
Copilot AI review requested due to automatic review settings May 20, 2026 03:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants