Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions infra/manifests/litellm/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,14 @@ data:
- model_name: claude-opus-4-6
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot Feb 24, 2026

Choose a reason for hiding this comment

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

P2: The litellm-hooks ConfigMap (with hooks.py) and its deployment artifacts are now dead code. Since all async_pre_call_hook references have been removed, the following should also be cleaned up in this PR:

  • The litellm-hooks ConfigMap in this file (lines ~183-218)
  • The volume mount, volume definition, and PYTHONPATH env var in deployment.yaml

Leaving these behind adds confusion for future maintainers and needlessly mounts unused code into the container.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At infra/manifests/litellm/configmap.yaml, line 46:

<comment>The `litellm-hooks` ConfigMap (with `hooks.py`) and its deployment artifacts are now dead code. Since all `async_pre_call_hook` references have been removed, the following should also be cleaned up in this PR:
- The `litellm-hooks` ConfigMap in this file (lines ~183-218)
- The volume mount, volume definition, and `PYTHONPATH` env var in `deployment.yaml`

Leaving these behind adds confusion for future maintainers and needlessly mounts unused code into the container.</comment>

<file context>
@@ -42,20 +42,14 @@ data:
-          custom_llm_provider: anthropic
-          async_pre_call_hook: hooks.async_pre_call_hook
 
       - model_name: claude-sonnet-4-6
         litellm_params:
           model: anthropic/claude-sonnet-4-6
</file context>
Fix with Cubic

litellm_params:
model: anthropic/claude-opus-4-6
custom_llm_provider: anthropic
async_pre_call_hook: hooks.async_pre_call_hook

- model_name: claude-sonnet-4-6
litellm_params:
model: anthropic/claude-sonnet-4-6
custom_llm_provider: anthropic
async_pre_call_hook: hooks.async_pre_call_hook

- model_name: claude-haiku-4-5
litellm_params:
model: anthropic/claude-haiku-4-5
custom_llm_provider: anthropic
async_pre_call_hook: hooks.async_pre_call_hook

# ══════════════════════════════════════════
# OpenAI (direct — latest nano only)
Expand Down
Loading