forked from phoenix/litellm-mirror
fix(batches/main.py): fix linting error
This commit is contained in:
parent
99aa311083
commit
ccb8035949
2 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ async def acreate_batch(
|
||||||
extra_headers: Optional[Dict[str, str]] = None,
|
extra_headers: Optional[Dict[str, str]] = None,
|
||||||
extra_body: Optional[Dict[str, str]] = None,
|
extra_body: Optional[Dict[str, str]] = None,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
) -> Coroutine[Any, Any, Batch]:
|
) -> Batch:
|
||||||
"""
|
"""
|
||||||
Async: Creates and executes a batch from an uploaded file of request
|
Async: Creates and executes a batch from an uploaded file of request
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ async def acreate_batch(
|
||||||
|
|
||||||
def create_batch(
|
def create_batch(
|
||||||
completion_window: Literal["24h"],
|
completion_window: Literal["24h"],
|
||||||
endpoint: Literal["/v1/chat/completions", "/v1/embeddings"],
|
endpoint: Literal["/v1/chat/completions", "/v1/embeddings", "/v1/completions"],
|
||||||
input_file_id: str,
|
input_file_id: str,
|
||||||
custom_llm_provider: Literal["openai"] = "openai",
|
custom_llm_provider: Literal["openai"] = "openai",
|
||||||
metadata: Optional[Dict[str, str]] = None,
|
metadata: Optional[Dict[str, str]] = None,
|
||||||
|
@ -189,7 +189,7 @@ async def aretrieve_batch(
|
||||||
extra_headers: Optional[Dict[str, str]] = None,
|
extra_headers: Optional[Dict[str, str]] = None,
|
||||||
extra_body: Optional[Dict[str, str]] = None,
|
extra_body: Optional[Dict[str, str]] = None,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
) -> Coroutine[Any, Any, Batch]:
|
) -> Batch:
|
||||||
"""
|
"""
|
||||||
Async: Retrieves a batch.
|
Async: Retrieves a batch.
|
||||||
|
|
||||||
|
|
|
@ -257,7 +257,7 @@ class CreateBatchRequest(TypedDict, total=False):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
completion_window: Literal["24h"]
|
completion_window: Literal["24h"]
|
||||||
endpoint: Literal["/v1/chat/completions", "/v1/embeddings"]
|
endpoint: Literal["/v1/chat/completions", "/v1/embeddings", "/v1/completions"]
|
||||||
input_file_id: str
|
input_file_id: str
|
||||||
metadata: Optional[Dict[str, str]]
|
metadata: Optional[Dict[str, str]]
|
||||||
extra_headers: Optional[Dict[str, str]]
|
extra_headers: Optional[Dict[str, str]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue