Skip to content

Commit 08adcb4

Browse files
author
stlc-bot
committed
seal
1 parent b0cc2d9 commit 08adcb4

12 files changed

Lines changed: 2409 additions & 154 deletions

‎src/context/dev/resources/batch.py‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
from typing import Union
56
from typing_extensions import Literal
67

78
import httpx
@@ -95,7 +96,7 @@ def list(
9596
q: str | Omit = omit,
9697
search_type: Literal["exact", "prefix"] | Omit = omit,
9798
status: Literal["queued", "running", "cancelling", "completed", "cancelled", "failed"] | Omit = omit,
98-
tags: str | Omit = omit,
99+
tags: Union[str, SequenceNotStr[str]] | Omit = omit,
99100
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
100101
# The extra values given here take precedence over values defined on the client or passed to this method.
101102
extra_headers: Headers | None = None,
@@ -119,7 +120,8 @@ def list(
119120
120121
status: Filter by status.
121122
122-
tags: Comma-separated list of tags to filter by (matches batches having any of them).
123+
tags: Tags to filter by (matches batches having any of them). Pass repeated `tags`
124+
params or one comma-separated list, e.g. `tags=docs,competitor`.
123125
124126
extra_headers: Send extra headers
125127
@@ -407,7 +409,7 @@ async def list(
407409
q: str | Omit = omit,
408410
search_type: Literal["exact", "prefix"] | Omit = omit,
409411
status: Literal["queued", "running", "cancelling", "completed", "cancelled", "failed"] | Omit = omit,
410-
tags: str | Omit = omit,
412+
tags: Union[str, SequenceNotStr[str]] | Omit = omit,
411413
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
412414
# The extra values given here take precedence over values defined on the client or passed to this method.
413415
extra_headers: Headers | None = None,
@@ -431,7 +433,8 @@ async def list(
431433
432434
status: Filter by status.
433435
434-
tags: Comma-separated list of tags to filter by (matches batches having any of them).
436+
tags: Tags to filter by (matches batches having any of them). Pass repeated `tags`
437+
params or one comma-separated list, e.g. `tags=docs,competitor`.
435438
436439
extra_headers: Send extra headers
437440

0 commit comments

Comments
 (0)