mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
chore: remove unused imports and variables
- Remove unused typing imports (Any, Dict) - Remove unused output_index variable - Fix comment to reflect actual key structure (item_id, content_index) Committed-By-Agent: cursor
This commit is contained in:
parent
540f14ef51
commit
901252fb78
1 changed files with 1 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import asyncio
|
||||
import json
|
||||
from typing import Any, Dict
|
||||
|
||||
from fastapi import APIRouter, Depends, HTTPException, Request, Response
|
||||
|
||||
|
|
@ -80,7 +79,7 @@ async def _background_streaming_task(
|
|||
# Process streaming response following OpenAI events format
|
||||
# https://platform.openai.com/docs/api-reference/responses-streaming
|
||||
output_items = {} # Track output items by ID
|
||||
accumulated_text = {} # Track accumulated text deltas by (output_index, content_index)
|
||||
accumulated_text = {} # Track accumulated text deltas by (item_id, content_index)
|
||||
usage_data = None
|
||||
reasoning_data = None
|
||||
tool_choice_data = None
|
||||
|
|
@ -145,7 +144,6 @@ async def _background_streaming_task(
|
|||
# Text delta - accumulate text content
|
||||
# https://platform.openai.com/docs/api-reference/responses-streaming/response-text-delta
|
||||
item_id = event.get("item_id")
|
||||
output_index = event.get("output_index", 0)
|
||||
content_index = event.get("content_index", 0)
|
||||
delta = event.get("delta", "")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue