Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 9 additions & 10 deletions src/resources/beta/assistants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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<ThreadsAPI.FileSearch.VectorStore>;
vector_stores?: Array<FileSearch.VectorStore>;
}

export namespace FileSearch {
Expand All @@ -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
Expand Down Expand Up @@ -1278,7 +1277,7 @@ export namespace AssistantCreateParams {
}

export interface Static {
static: ThreadsAPI.Static.Static;
static: Static.Static;

/**
* Always `static`.
Expand Down
4 changes: 2 additions & 2 deletions src/resources/beta/threads/threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down