fix: correct indentation from commit suggestions and add missing Optional import

This commit is contained in:
Chesars 2026-03-03 10:51:48 -03:00
parent 096edface5
commit 9463de0c66
2 changed files with 2 additions and 1 deletions

View file

@ -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
)

View file

@ -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