From 1c9020ccdd0f008fba3c3d363ad5c0ebda522c46 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 21:45:55 +0000 Subject: [PATCH] feat(api): revert changes --- .stats.yml | 2 +- src/resources/beta/assistants.ts | 19 +++++++++---------- src/resources/beta/threads/threads.ts | 4 ++-- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.stats.yml b/.stats.yml index e427ad4d2..2df281d34 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 82 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-b503a1b4fddfc4914e5e78e10817ad03a985dd6a927ecaceceb4b3b3d0ffdd7e.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5ad6884898c07591750dde560118baf7074a59aecd1f367f930c5e42b04e848a.yml diff --git a/src/resources/beta/assistants.ts b/src/resources/beta/assistants.ts index 700f546e3..0668dcf54 100644 --- a/src/resources/beta/assistants.ts +++ b/src/resources/beta/assistants.ts @@ -3,10 +3,9 @@ import { APIResource } from '../../resource'; import { isRequestOptions } from '../../core'; import * as Core from '../../core'; -import * as ThreadsAPI from './threads/threads'; -import { type Auto, Static, unnamed_schema_0 } from './threads/threads'; import * as Shared from '../shared'; import * as MessagesAPI from './threads/messages'; +import * as ThreadsAPI from './threads/threads'; import * as RunsAPI from './threads/runs/runs'; import * as StepsAPI from './threads/runs/steps'; import { CursorPage, type CursorPageParams } from '../../pagination'; @@ -1179,7 +1178,7 @@ export interface AssistantCreateParams { * a list of file IDs, while the `file_search` tool requires a list of vector store * IDs. */ - tool_resources?: unnamed_schema_0 | null; + tool_resources?: AssistantCreateParams.ToolResources | null; /** * A list of tool enabled on the assistant. There can be a maximum of 128 tools per @@ -1205,13 +1204,13 @@ export namespace AssistantCreateParams { * a list of file IDs, while the `file_search` tool requires a list of vector store * IDs. */ - export interface unnamed_schema_0 { - code_interpreter?: ThreadsAPI.unnamed_schema_0.CodeInterpreter; + export interface ToolResources { + code_interpreter?: ToolResources.CodeInterpreter; - file_search?: ThreadsAPI.unnamed_schema_0.FileSearch; + file_search?: ToolResources.FileSearch; } - export namespace unnamed_schema_0 { + export namespace ToolResources { export interface CodeInterpreter { /** * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made @@ -1236,7 +1235,7 @@ export namespace AssistantCreateParams { * with file_ids and attach it to this assistant. There can be a maximum of 1 * vector store attached to the assistant. */ - vector_stores?: Array; + vector_stores?: Array; } export namespace FileSearch { @@ -1245,7 +1244,7 @@ export namespace AssistantCreateParams { * The chunking strategy used to chunk the file(s). If not set, will use the `auto` * strategy. */ - chunking_strategy?: Auto | Static; + chunking_strategy?: VectorStore.Auto | VectorStore.Static; /** * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to @@ -1278,7 +1277,7 @@ export namespace AssistantCreateParams { } export interface Static { - static: ThreadsAPI.Static.Static; + static: Static.Static; /** * Always `static`. diff --git a/src/resources/beta/threads/threads.ts b/src/resources/beta/threads/threads.ts index 46460896c..b284b017b 100644 --- a/src/resources/beta/threads/threads.ts +++ b/src/resources/beta/threads/threads.ts @@ -412,7 +412,7 @@ export namespace ThreadCreateParams { * The chunking strategy used to chunk the file(s). If not set, will use the `auto` * strategy. */ - chunking_strategy?: Auto | Static; + chunking_strategy?: VectorStore.Auto | VectorStore.Static; /** * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to @@ -810,7 +810,7 @@ export namespace ThreadCreateAndRunParams { * The chunking strategy used to chunk the file(s). If not set, will use the `auto` * strategy. */ - chunking_strategy?: Auto | Static; + chunking_strategy?: VectorStore.Auto | VectorStore.Static; /** * A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to