fix: map disable_log_requests to --no-enable-log-requests for newer vLLM#779
Open
fix: map disable_log_requests to --no-enable-log-requests for newer vLLM#779
Conversation
Newer vLLM versions removed --disable-log-requests in favor of --no-enable-log-requests. Add a VLLM_FLAG_RENAMES mapping so the command builder translates DTO field names to their current CLI flags. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--disable-log-requestsin favor of--no-enable-log-requestsVLLM_FLAG_RENAMESdict in the vLLM command builder to translate DTO field names to their current CLI flag equivalentssensitive_log_mode: true(prod) triggersdisable_log_requestsTest plan
--no-enable-log-requestsappears in the generated vLLM command🤖 Generated with Claude Code
Greptile Summary
This PR fixes a pod startup crash in production by mapping the deprecated
--disable-log-requestsvLLM CLI flag to its modern equivalent--no-enable-log-requests, which is triggered wheneversensitive_log_modeis enabled. The fix introduces aVLLM_FLAG_RENAMESdictionary in the vLLM command builder that translates DTO field names to their current CLI flag equivalents, providing an extensible mechanism for handling future vLLM flag renames.Key changes:
VLLM_FLAG_RENAMESdict (local to the command-building block) mappingdisable_log_requests→no-enable-log-requestsfield.replace("_", "-")transformationdisable_sliding_window(anotherboolfield inVLLMModelConfig) may be subject to an analogous rename in newer vLLM and could warrant a proactive entry in the rename mapConfidence Score: 4/5
disable_log_requests=Truenow emits--no-enable-log-requests(a boolean presence flag) rather than the removed--disable-log-requests, and the fallback path for all other fields is unchanged. The only concerns are a minor naming convention issue with the localVLLM_FLAG_RENAMESvariable and the absence of tests, neither of which affects correctness.Important Files Changed
VLLM_FLAG_RENAMESdict to translate DTO field names to renamed vLLM CLI flags, mappingdisable_log_requests→no-enable-log-requeststo fix pod startup crashes in newer vLLM versions whensensitive_log_modeis enabled. The logic is correct but the constant is defined as a local variable using ALL_CAPS naming (typically reserved for module-level constants in Python), anddisable_sliding_windowmay need similar treatment.Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Iterate VLLMEndpointAdditionalArgs fields] --> B{config_value is not None?} B -- No --> A B -- Yes --> C{field == chat_template?} C -- Yes --> D[Encode template as base64\nexport CHAT_TEMPLATE env var] D --> E C -- No --> E[cli_flag = VLLM_FLAG_RENAMES.get field\nor field.replace _ -] E --> F{isinstance config_value bool?} F -- Yes --> G{config_value is True?} G -- Yes --> H[append --cli_flag] G -- No --> A F -- No --> I[append --cli_flag config_value] H --> A I --> A style E fill:#d4f1d4,stroke:#2e7d32 style H fill:#d4f1d4,stroke:#2e7d32 subgraph VLLM_FLAG_RENAMES direction LR R1["disable_log_requests → no-enable-log-requests"] endLast reviewed commit: 5d246da