remove unused CreateBatchRequest, update completion_window to be literal "24h"

This commit is contained in:
Matthew Farrellee 2025-08-14 09:25:22 -04:00 committed by Ashwin Bharambe
parent e6d5bf5588
commit a0cd3c775d
4 changed files with 7 additions and 18 deletions

View file

@ -10,7 +10,7 @@ import json
import time
import uuid
from io import BytesIO
from typing import Any
from typing import Any, Literal
from openai.types.batch import BatchError, Errors
from pydantic import BaseModel
@ -108,7 +108,7 @@ class ReferenceBatchesImpl(Batches):
self,
input_file_id: str,
endpoint: str,
completion_window: str,
completion_window: Literal["24h"],
metadata: dict[str, str] | None = None,
) -> BatchObject:
"""