Skip to content

Commit 6545631

Browse files
feat(api): manual updates (#1411)
1 parent 338878b commit 6545631

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
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-c22f59c66aec7914b6ee653d3098d1c1c8c16c180d2a158e819c8ddbf476f74b.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-4bc8df9bcbd9a3b1822bcbe38af92d0cf289acded43aa5aebc2bc503b186af89.yml

src/resources/beta/assistants.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
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';
68
import * as Shared from '../shared';
79
import * as MessagesAPI from './threads/messages';
8-
import * as ThreadsAPI from './threads/threads';
910
import * as RunsAPI from './threads/runs/runs';
1011
import * as StepsAPI from './threads/runs/steps';
1112
import { CursorPage, type CursorPageParams } from '../../pagination';
@@ -1178,7 +1179,7 @@ export interface AssistantCreateParams {
11781179
* a list of file IDs, while the `file_search` tool requires a list of vector store
11791180
* IDs.
11801181
*/
1181-
tool_resources?: AssistantCreateParams.ToolResources | null;
1182+
tool_resources?: unnamed_schema_0 | null;
11821183

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

1210-
file_search?: ToolResources.FileSearch;
1211+
file_search?: ThreadsAPI.unnamed_schema_0.FileSearch;
12111212
}
12121213

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

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

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

12791280
export interface Static {
1280-
static: Static.Static;
1281+
static: ThreadsAPI.Static.Static;
12811282

12821283
/**
12831284
* 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?: VectorStore.Auto | VectorStore.Static;
444+
chunking_strategy?: Auto | 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?: VectorStore.Auto | VectorStore.Static;
842+
chunking_strategy?: Auto | Static;
843843

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

0 commit comments

Comments
 (0)