Skip to content

Commit a3ad56c

Browse files
feat(api): revert changes (#1412)
1 parent da8e5a2 commit a3ad56c

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 82
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-b503a1b4fddfc4914e5e78e10817ad03a985dd6a927ecaceceb4b3b3d0ffdd7e.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5ad6884898c07591750dde560118baf7074a59aecd1f367f930c5e42b04e848a.yml

src/resources/beta/assistants.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
import { APIResource } from '../../resource';
44
import { isRequestOptions } from '../../core';
55
import * as Core from '../../core';
6-
import * as ThreadsAPI from './threads/threads';
7-
import { type Auto, Static, unnamed_schema_0 } from './threads/threads';
86
import * as Shared from '../shared';
97
import * as MessagesAPI from './threads/messages';
8+
import * as ThreadsAPI from './threads/threads';
109
import * as RunsAPI from './threads/runs/runs';
1110
import * as StepsAPI from './threads/runs/steps';
1211
import { CursorPage, type CursorPageParams } from '../../pagination';
@@ -1179,7 +1178,7 @@ export interface AssistantCreateParams {
11791178
* a list of file IDs, while the `file_search` tool requires a list of vector store
11801179
* IDs.
11811180
*/
1182-
tool_resources?: unnamed_schema_0 | null;
1181+
tool_resources?: AssistantCreateParams.ToolResources | null;
11831182

11841183
/**
11851184
* A list of tool enabled on the assistant. There can be a maximum of 128 tools per
@@ -1205,13 +1204,13 @@ export namespace AssistantCreateParams {
12051204
* a list of file IDs, while the `file_search` tool requires a list of vector store
12061205
* IDs.
12071206
*/
1208-
export interface unnamed_schema_0 {
1209-
code_interpreter?: ThreadsAPI.unnamed_schema_0.CodeInterpreter;
1207+
export interface ToolResources {
1208+
code_interpreter?: ToolResources.CodeInterpreter;
12101209

1211-
file_search?: ThreadsAPI.unnamed_schema_0.FileSearch;
1210+
file_search?: ToolResources.FileSearch;
12121211
}
12131212

1214-
export namespace unnamed_schema_0 {
1213+
export namespace ToolResources {
12151214
export interface CodeInterpreter {
12161215
/**
12171216
* A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
@@ -1236,7 +1235,7 @@ export namespace AssistantCreateParams {
12361235
* with file_ids and attach it to this assistant. There can be a maximum of 1
12371236
* vector store attached to the assistant.
12381237
*/
1239-
vector_stores?: Array<ThreadsAPI.FileSearch.VectorStore>;
1238+
vector_stores?: Array<FileSearch.VectorStore>;
12401239
}
12411240

12421241
export namespace FileSearch {
@@ -1245,7 +1244,7 @@ export namespace AssistantCreateParams {
12451244
* The chunking strategy used to chunk the file(s). If not set, will use the `auto`
12461245
* strategy.
12471246
*/
1248-
chunking_strategy?: Auto | Static;
1247+
chunking_strategy?: VectorStore.Auto | VectorStore.Static;
12491248

12501249
/**
12511250
* A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to
@@ -1278,7 +1277,7 @@ export namespace AssistantCreateParams {
12781277
}
12791278

12801279
export interface Static {
1281-
static: ThreadsAPI.Static.Static;
1280+
static: Static.Static;
12821281

12831282
/**
12841283
* Always `static`.

src/resources/beta/threads/threads.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export namespace ThreadCreateParams {
441441
* The chunking strategy used to chunk the file(s). If not set, will use the `auto`
442442
* strategy.
443443
*/
444-
chunking_strategy?: Auto | Static;
444+
chunking_strategy?: VectorStore.Auto | VectorStore.Static;
445445

446446
/**
447447
* A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to
@@ -839,7 +839,7 @@ export namespace ThreadCreateAndRunParams {
839839
* The chunking strategy used to chunk the file(s). If not set, will use the `auto`
840840
* strategy.
841841
*/
842-
chunking_strategy?: Auto | Static;
842+
chunking_strategy?: VectorStore.Auto | VectorStore.Static;
843843

844844
/**
845845
* A list of [file](https://platform.openai.com/docs/api-reference/files) IDs to

0 commit comments

Comments
 (0)