Skip to content
Open
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: 0 additions & 2 deletions src/cai/sdk/agents/models/openai_chatcompletions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3305,7 +3305,6 @@ async def _fetch_response_litellm_openai(
try:
if stream:
# Standard LiteLLM handling for streaming
ret = await litellm.acompletion(**kwargs)
stream_obj = await litellm.acompletion(**kwargs)

response = Response(
Expand Down Expand Up @@ -3359,7 +3358,6 @@ async def _fetch_response_litellm_openai(
kwargs["messages"] = messages
# Retry once, silently
if stream:
ret = await litellm.acompletion(**kwargs)
stream_obj = await litellm.acompletion(**kwargs)
response = Response(
id=FAKE_RESPONSES_ID,
Expand Down