Skip to content

Commit 25245e5

Browse files
feat(api): manual updates
1 parent fd586cb commit 25245e5

37 files changed

+346
-580
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 101
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-161ca7f1cfd7b33c1fc07d0ce25dfe4be5a7271c394f4cb526b7fb21b0729900.yml
33
openapi_spec_hash: 602e14add4bee018c6774e320ce309b8
4-
config_hash: 7da27f7260075e8813ddcea542fba1bf
4+
config_hash: bdacc55eb995c15255ec82130eb8c3bb

api.md

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ from openai.types import (
77
ComparisonFilter,
88
CompoundFilter,
99
ErrorObject,
10+
EvalItem,
1011
FunctionDefinition,
1112
FunctionParameters,
1213
Metadata,
@@ -343,6 +344,7 @@ from openai.types import (
343344
StaticFileChunkingStrategyObjectParam,
344345
VectorStore,
345346
VectorStoreDeleted,
347+
VectorStoreExpirationAfter,
346348
VectorStoreSearchResponse,
347349
)
348350
```
@@ -519,6 +521,7 @@ from openai.types.beta import (
519521
AssistantToolChoiceOption,
520522
Thread,
521523
ThreadDeleted,
524+
TruncationObject,
522525
)
523526
```
524527

@@ -815,6 +818,8 @@ from openai.types.evals import (
815818
CreateEvalJSONLRunDataSource,
816819
CreateEvalResponsesRunDataSource,
817820
EvalAPIError,
821+
EvalJSONLFileContentSource,
822+
EvalJSONLFileIDSource,
818823
RunCreateResponse,
819824
RunRetrieveResponse,
820825
RunListResponse,

src/openai/resources/beta/threads/runs/runs.py

+9-8
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
from .....types.shared.reasoning_effort import ReasoningEffort
5252
from .....types.beta.assistant_tool_param import AssistantToolParam
5353
from .....types.beta.assistant_stream_event import AssistantStreamEvent
54+
from .....types.beta.truncation_object_param import TruncationObjectParam
5455
from .....types.beta.threads.runs.run_step_include import RunStepInclude
5556
from .....types.beta.assistant_tool_choice_option_param import AssistantToolChoiceOptionParam
5657
from .....types.beta.assistant_response_format_option_param import AssistantResponseFormatOptionParam
@@ -104,7 +105,7 @@ def create(
104105
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
105106
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
106107
top_p: Optional[float] | NotGiven = NOT_GIVEN,
107-
truncation_strategy: Optional[run_create_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
108+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
108109
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
109110
# The extra values given here take precedence over values defined on the client or passed to this method.
110111
extra_headers: Headers | None = None,
@@ -254,7 +255,7 @@ def create(
254255
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
255256
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
256257
top_p: Optional[float] | NotGiven = NOT_GIVEN,
257-
truncation_strategy: Optional[run_create_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
258+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
258259
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
259260
# The extra values given here take precedence over values defined on the client or passed to this method.
260261
extra_headers: Headers | None = None,
@@ -404,7 +405,7 @@ def create(
404405
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
405406
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
406407
top_p: Optional[float] | NotGiven = NOT_GIVEN,
407-
truncation_strategy: Optional[run_create_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
408+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
408409
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
409410
# The extra values given here take precedence over values defined on the client or passed to this method.
410411
extra_headers: Headers | None = None,
@@ -554,7 +555,7 @@ def create(
554555
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
555556
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
556557
top_p: Optional[float] | NotGiven = NOT_GIVEN,
557-
truncation_strategy: Optional[run_create_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
558+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
558559
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
559560
# The extra values given here take precedence over values defined on the client or passed to this method.
560561
extra_headers: Headers | None = None,
@@ -1515,7 +1516,7 @@ async def create(
15151516
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
15161517
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
15171518
top_p: Optional[float] | NotGiven = NOT_GIVEN,
1518-
truncation_strategy: Optional[run_create_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
1519+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
15191520
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
15201521
# The extra values given here take precedence over values defined on the client or passed to this method.
15211522
extra_headers: Headers | None = None,
@@ -1665,7 +1666,7 @@ async def create(
16651666
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
16661667
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
16671668
top_p: Optional[float] | NotGiven = NOT_GIVEN,
1668-
truncation_strategy: Optional[run_create_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
1669+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
16691670
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
16701671
# The extra values given here take precedence over values defined on the client or passed to this method.
16711672
extra_headers: Headers | None = None,
@@ -1815,7 +1816,7 @@ async def create(
18151816
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
18161817
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
18171818
top_p: Optional[float] | NotGiven = NOT_GIVEN,
1818-
truncation_strategy: Optional[run_create_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
1819+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
18191820
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
18201821
# The extra values given here take precedence over values defined on the client or passed to this method.
18211822
extra_headers: Headers | None = None,
@@ -1965,7 +1966,7 @@ async def create(
19651966
tool_choice: Optional[AssistantToolChoiceOptionParam] | NotGiven = NOT_GIVEN,
19661967
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
19671968
top_p: Optional[float] | NotGiven = NOT_GIVEN,
1968-
truncation_strategy: Optional[run_create_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
1969+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
19691970
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
19701971
# The extra values given here take precedence over values defined on the client or passed to this method.
19711972
extra_headers: Headers | None = None,

src/openai/resources/beta/threads/threads.py

+9-8
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
from ....types.shared_params.metadata import Metadata
5353
from ....types.beta.assistant_tool_param import AssistantToolParam
5454
from ....types.beta.assistant_stream_event import AssistantStreamEvent
55+
from ....types.beta.truncation_object_param import TruncationObjectParam
5556
from ....types.beta.assistant_tool_choice_option_param import AssistantToolChoiceOptionParam
5657
from ....types.beta.assistant_response_format_option_param import AssistantResponseFormatOptionParam
5758

@@ -285,7 +286,7 @@ def create_and_run(
285286
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
286287
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
287288
top_p: Optional[float] | NotGiven = NOT_GIVEN,
288-
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
289+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
289290
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
290291
# The extra values given here take precedence over values defined on the client or passed to this method.
291292
extra_headers: Headers | None = None,
@@ -418,7 +419,7 @@ def create_and_run(
418419
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
419420
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
420421
top_p: Optional[float] | NotGiven = NOT_GIVEN,
421-
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
422+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
422423
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
423424
# The extra values given here take precedence over values defined on the client or passed to this method.
424425
extra_headers: Headers | None = None,
@@ -551,7 +552,7 @@ def create_and_run(
551552
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
552553
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
553554
top_p: Optional[float] | NotGiven = NOT_GIVEN,
554-
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
555+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
555556
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
556557
# The extra values given here take precedence over values defined on the client or passed to this method.
557558
extra_headers: Headers | None = None,
@@ -684,7 +685,7 @@ def create_and_run(
684685
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
685686
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
686687
top_p: Optional[float] | NotGiven = NOT_GIVEN,
687-
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
688+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
688689
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
689690
# The extra values given here take precedence over values defined on the client or passed to this method.
690691
extra_headers: Headers | None = None,
@@ -1134,7 +1135,7 @@ async def create_and_run(
11341135
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
11351136
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
11361137
top_p: Optional[float] | NotGiven = NOT_GIVEN,
1137-
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
1138+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
11381139
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
11391140
# The extra values given here take precedence over values defined on the client or passed to this method.
11401141
extra_headers: Headers | None = None,
@@ -1267,7 +1268,7 @@ async def create_and_run(
12671268
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
12681269
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
12691270
top_p: Optional[float] | NotGiven = NOT_GIVEN,
1270-
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
1271+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
12711272
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
12721273
# The extra values given here take precedence over values defined on the client or passed to this method.
12731274
extra_headers: Headers | None = None,
@@ -1400,7 +1401,7 @@ async def create_and_run(
14001401
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
14011402
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
14021403
top_p: Optional[float] | NotGiven = NOT_GIVEN,
1403-
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
1404+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
14041405
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
14051406
# The extra values given here take precedence over values defined on the client or passed to this method.
14061407
extra_headers: Headers | None = None,
@@ -1533,7 +1534,7 @@ async def create_and_run(
15331534
tool_resources: Optional[thread_create_and_run_params.ToolResources] | NotGiven = NOT_GIVEN,
15341535
tools: Optional[Iterable[AssistantToolParam]] | NotGiven = NOT_GIVEN,
15351536
top_p: Optional[float] | NotGiven = NOT_GIVEN,
1536-
truncation_strategy: Optional[thread_create_and_run_params.TruncationStrategy] | NotGiven = NOT_GIVEN,
1537+
truncation_strategy: Optional[TruncationObjectParam] | NotGiven = NOT_GIVEN,
15371538
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
15381539
# The extra values given here take precedence over values defined on the client or passed to this method.
15391540
extra_headers: Headers | None = None,

src/openai/resources/vector_stores/vector_stores.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
from ...types.shared_params.metadata import Metadata
4444
from ...types.file_chunking_strategy_param import FileChunkingStrategyParam
4545
from ...types.vector_store_search_response import VectorStoreSearchResponse
46+
from ...types.vector_store_expiration_after_param import VectorStoreExpirationAfterParam
4647

4748
__all__ = ["VectorStores", "AsyncVectorStores"]
4849

@@ -79,7 +80,7 @@ def create(
7980
self,
8081
*,
8182
chunking_strategy: FileChunkingStrategyParam | NotGiven = NOT_GIVEN,
82-
expires_after: vector_store_create_params.ExpiresAfter | NotGiven = NOT_GIVEN,
83+
expires_after: VectorStoreExpirationAfterParam | NotGiven = NOT_GIVEN,
8384
file_ids: List[str] | NotGiven = NOT_GIVEN,
8485
metadata: Optional[Metadata] | NotGiven = NOT_GIVEN,
8586
name: str | NotGiven = NOT_GIVEN,
@@ -177,7 +178,7 @@ def update(
177178
self,
178179
vector_store_id: str,
179180
*,
180-
expires_after: Optional[vector_store_update_params.ExpiresAfter] | NotGiven = NOT_GIVEN,
181+
expires_after: Optional[VectorStoreExpirationAfterParam] | NotGiven = NOT_GIVEN,
181182
metadata: Optional[Metadata] | NotGiven = NOT_GIVEN,
182183
name: Optional[str] | NotGiven = NOT_GIVEN,
183184
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -424,7 +425,7 @@ async def create(
424425
self,
425426
*,
426427
chunking_strategy: FileChunkingStrategyParam | NotGiven = NOT_GIVEN,
427-
expires_after: vector_store_create_params.ExpiresAfter | NotGiven = NOT_GIVEN,
428+
expires_after: VectorStoreExpirationAfterParam | NotGiven = NOT_GIVEN,
428429
file_ids: List[str] | NotGiven = NOT_GIVEN,
429430
metadata: Optional[Metadata] | NotGiven = NOT_GIVEN,
430431
name: str | NotGiven = NOT_GIVEN,
@@ -522,7 +523,7 @@ async def update(
522523
self,
523524
vector_store_id: str,
524525
*,
525-
expires_after: Optional[vector_store_update_params.ExpiresAfter] | NotGiven = NOT_GIVEN,
526+
expires_after: Optional[VectorStoreExpirationAfterParam] | NotGiven = NOT_GIVEN,
526527
metadata: Optional[Metadata] | NotGiven = NOT_GIVEN,
527528
name: Optional[str] | NotGiven = NOT_GIVEN,
528529
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/openai/types/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from .image import Image as Image
77
from .model import Model as Model
88
from .shared import (
9+
EvalItem as EvalItem,
910
Metadata as Metadata,
1011
AllModels as AllModels,
1112
ChatModel as ChatModel,
@@ -76,12 +77,14 @@
7677
from .websocket_connection_options import WebsocketConnectionOptions as WebsocketConnectionOptions
7778
from .image_create_variation_params import ImageCreateVariationParams as ImageCreateVariationParams
7879
from .static_file_chunking_strategy import StaticFileChunkingStrategy as StaticFileChunkingStrategy
80+
from .vector_store_expiration_after import VectorStoreExpirationAfter as VectorStoreExpirationAfter
7981
from .eval_custom_data_source_config import EvalCustomDataSourceConfig as EvalCustomDataSourceConfig
8082
from .moderation_image_url_input_param import ModerationImageURLInputParam as ModerationImageURLInputParam
8183
from .auto_file_chunking_strategy_param import AutoFileChunkingStrategyParam as AutoFileChunkingStrategyParam
8284
from .moderation_multi_modal_input_param import ModerationMultiModalInputParam as ModerationMultiModalInputParam
8385
from .other_file_chunking_strategy_object import OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject
8486
from .static_file_chunking_strategy_param import StaticFileChunkingStrategyParam as StaticFileChunkingStrategyParam
87+
from .vector_store_expiration_after_param import VectorStoreExpirationAfterParam as VectorStoreExpirationAfterParam
8588
from .static_file_chunking_strategy_object import StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject
8689
from .eval_stored_completions_data_source_config import (
8790
EvalStoredCompletionsDataSourceConfig as EvalStoredCompletionsDataSourceConfig,

src/openai/types/beta/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from .thread_deleted import ThreadDeleted as ThreadDeleted
1010
from .file_search_tool import FileSearchTool as FileSearchTool
1111
from .assistant_deleted import AssistantDeleted as AssistantDeleted
12+
from .truncation_object import TruncationObject as TruncationObject
1213
from .function_tool_param import FunctionToolParam as FunctionToolParam
1314
from .assistant_tool_param import AssistantToolParam as AssistantToolParam
1415
from .thread_create_params import ThreadCreateParams as ThreadCreateParams
@@ -20,6 +21,7 @@
2021
from .file_search_tool_param import FileSearchToolParam as FileSearchToolParam
2122
from .assistant_create_params import AssistantCreateParams as AssistantCreateParams
2223
from .assistant_update_params import AssistantUpdateParams as AssistantUpdateParams
24+
from .truncation_object_param import TruncationObjectParam as TruncationObjectParam
2325
from .assistant_tool_choice_param import AssistantToolChoiceParam as AssistantToolChoiceParam
2426
from .code_interpreter_tool_param import CodeInterpreterToolParam as CodeInterpreterToolParam
2527
from .assistant_tool_choice_option import AssistantToolChoiceOption as AssistantToolChoiceOption

0 commit comments

Comments
 (0)