Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"include": ["litellm"],
"ignore": [],
"exclude": ["**/node_modules", "**/__pycache__", "tests/e2e/claude_code", "litellm/types/utils.py", "litellm/proxy/_types.py"],
"exclude": ["**/node_modules", "**/__pycache__", "litellm/types/utils.py", "litellm/proxy/_types.py"],
"pythonVersion": "3.12",
"typeCheckingMode": "strict",
"enableTypeIgnoreComments": false,
Expand Down
10 changes: 6 additions & 4 deletions tests/e2e/claude_code/_basic_messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from __future__ import annotations

import os
from typing import Any, Mapping, Sequence
from typing import Mapping, Sequence

import pytest

Expand All @@ -37,6 +37,8 @@
failure_diagnostic,
run_claude_models_parallel,
)
from claude_code.conftest import CompatResult
from claude_code.json_types import JSONValue

PROXY_BASE_URL_ENV = "LITELLM_PROXY_BASE_URL"
PROXY_API_KEY_ENV = "LITELLM_PROXY_API_KEY"
Expand All @@ -53,7 +55,7 @@
MIN_STREAM_DELTA_EVENTS = 2


def _count_stream_event_deltas(events: Sequence[Mapping[str, Any]]) -> int:
def _count_stream_event_deltas(events: Sequence[Mapping[str, JSONValue]]) -> int:
"""Count `stream_event` records that carry an SSE event payload.

With `--include-partial-messages`, Claude Code wraps every upstream
Expand All @@ -75,7 +77,7 @@ def _count_stream_event_deltas(events: Sequence[Mapping[str, Any]]) -> int:

def run_basic_messaging_cell(
*,
compat_result,
compat_result: CompatResult,
models: Sequence[str],
prompt: str,
verify_streaming: bool = False,
Expand Down Expand Up @@ -128,7 +130,7 @@ def run_basic_messaging_cell(
extra_args=extra_args,
)

failures = []
failures: list[str] = []
for model in models:
outcome = outcomes[model]
if isinstance(outcome, ClaudeCLIError):
Expand Down
Loading
Loading