mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix: correct indentation from commit suggestions and add missing Optional import
This commit is contained in:
parent
096edface5
commit
9463de0c66
2 changed files with 2 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ async def create_batch( # noqa: PLR0915
|
|||
file_id=response.output_file_id, model=model_param
|
||||
)
|
||||
|
||||
if hasattr(response, "error_file_id") and response.error_file_id:
|
||||
if hasattr(response, "error_file_id") and response.error_file_id:
|
||||
response.error_file_id = encode_file_id_with_model(
|
||||
file_id=response.error_file_id, model=model_param
|
||||
)
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ Verifies that create_batch encodes response IDs with model info so that
|
|||
retrieve_batch can route back to the correct provider/credentials.
|
||||
"""
|
||||
|
||||
from typing import Optional
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
import pytest
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue