diff --git a/src/index.ts b/src/index.ts index f5c8a0fe1..854536161 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,8 +4,8 @@ import * as Core from './core'; import * as Errors from './error'; import { type Agent, type RequestInit } from './_shims/index'; import * as Uploads from './uploads'; -import * as Pagination from 'openai/pagination'; -import * as API from 'openai/resources/index'; +import * as Pagination from './pagination'; +import * as API from './resources/index'; export interface ClientOptions { /** diff --git a/src/resources/audio/audio.ts b/src/resources/audio/audio.ts index f3fcba4c3..a89bf0102 100644 --- a/src/resources/audio/audio.ts +++ b/src/resources/audio/audio.ts @@ -1,9 +1,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import { APIResource } from 'openai/resource'; -import * as SpeechAPI from 'openai/resources/audio/speech'; -import * as TranscriptionsAPI from 'openai/resources/audio/transcriptions'; -import * as TranslationsAPI from 'openai/resources/audio/translations'; +import { APIResource } from '../../resource'; +import * as SpeechAPI from './speech'; +import * as TranscriptionsAPI from './transcriptions'; +import * as TranslationsAPI from './translations'; export class Audio extends APIResource { transcriptions: TranscriptionsAPI.Transcriptions = new TranscriptionsAPI.Transcriptions(this._client); diff --git a/src/resources/audio/speech.ts b/src/resources/audio/speech.ts index 4b83bae3e..bcfbc80cc 100644 --- a/src/resources/audio/speech.ts +++ b/src/resources/audio/speech.ts @@ -1,9 +1,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { type Response } from 'openai/_shims/index'; -import * as SpeechAPI from 'openai/resources/audio/speech'; +import * as Core from '../../core'; +import { APIResource } from '../../resource'; +import { type Response } from '../../_shims/index'; +import * as SpeechAPI from './speech'; export class Speech extends APIResource { /** diff --git a/src/resources/audio/transcriptions.ts b/src/resources/audio/transcriptions.ts index f01e8556d..bbffce4ed 100644 --- a/src/resources/audio/transcriptions.ts +++ b/src/resources/audio/transcriptions.ts @@ -1,9 +1,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import * as TranscriptionsAPI from 'openai/resources/audio/transcriptions'; -import { type Uploadable, multipartFormRequestOptions } from 'openai/core'; +import * as Core from '../../core'; +import { APIResource } from '../../resource'; +import * as TranscriptionsAPI from './transcriptions'; +import { type Uploadable, multipartFormRequestOptions } from '../../core'; export class Transcriptions extends APIResource { /** diff --git a/src/resources/audio/translations.ts b/src/resources/audio/translations.ts index 234933236..890c59d55 100644 --- a/src/resources/audio/translations.ts +++ b/src/resources/audio/translations.ts @@ -1,9 +1,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import * as TranslationsAPI from 'openai/resources/audio/translations'; -import { type Uploadable, multipartFormRequestOptions } from 'openai/core'; +import * as Core from '../../core'; +import { APIResource } from '../../resource'; +import * as TranslationsAPI from './translations'; +import { type Uploadable, multipartFormRequestOptions } from '../../core'; export class Translations extends APIResource { /** diff --git a/src/resources/batches.ts b/src/resources/batches.ts index 2f6af03e6..ce04dd57b 100644 --- a/src/resources/batches.ts +++ b/src/resources/batches.ts @@ -1,10 +1,10 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import * as BatchesAPI from 'openai/resources/batches'; -import { CursorPage, type CursorPageParams } from 'openai/pagination'; +import * as Core from '../core'; +import { APIResource } from '../resource'; +import { isRequestOptions } from '../core'; +import * as BatchesAPI from './batches'; +import { CursorPage, type CursorPageParams } from '../pagination'; export class Batches extends APIResource { /** diff --git a/src/resources/beta/assistants.ts b/src/resources/beta/assistants.ts index 4f3136446..719054365 100644 --- a/src/resources/beta/assistants.ts +++ b/src/resources/beta/assistants.ts @@ -1,15 +1,15 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import * as AssistantsAPI from 'openai/resources/beta/assistants'; -import * as Shared from 'openai/resources/shared'; -import * as MessagesAPI from 'openai/resources/beta/threads/messages'; -import * as ThreadsAPI from 'openai/resources/beta/threads/threads'; -import * as RunsAPI from 'openai/resources/beta/threads/runs/runs'; -import * as StepsAPI from 'openai/resources/beta/threads/runs/steps'; -import { CursorPage, type CursorPageParams } from 'openai/pagination'; +import * as Core from '../../core'; +import { APIResource } from '../../resource'; +import { isRequestOptions } from '../../core'; +import * as AssistantsAPI from './assistants'; +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'; export class Assistants extends APIResource { /** diff --git a/src/resources/beta/beta.ts b/src/resources/beta/beta.ts index ff79d5242..cefe66824 100644 --- a/src/resources/beta/beta.ts +++ b/src/resources/beta/beta.ts @@ -1,10 +1,10 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import { APIResource } from 'openai/resource'; -import * as AssistantsAPI from 'openai/resources/beta/assistants'; -import * as ChatAPI from 'openai/resources/beta/chat/chat'; -import * as ThreadsAPI from 'openai/resources/beta/threads/threads'; -import * as VectorStoresAPI from 'openai/resources/beta/vector-stores/vector-stores'; +import { APIResource } from '../../resource'; +import * as AssistantsAPI from './assistants'; +import * as ChatAPI from './chat/chat'; +import * as ThreadsAPI from './threads/threads'; +import * as VectorStoresAPI from './vector-stores/vector-stores'; export class Beta extends APIResource { vectorStores: VectorStoresAPI.VectorStores = new VectorStoresAPI.VectorStores(this._client); diff --git a/src/resources/beta/chat/chat.ts b/src/resources/beta/chat/chat.ts index 2b4a7a404..110ae46cb 100644 --- a/src/resources/beta/chat/chat.ts +++ b/src/resources/beta/chat/chat.ts @@ -1,7 +1,7 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import { APIResource } from 'openai/resource'; -import * as CompletionsAPI from 'openai/resources/beta/chat/completions'; +import { APIResource } from '../../../resource'; +import * as CompletionsAPI from './completions'; export class Chat extends APIResource { completions: CompletionsAPI.Completions = new CompletionsAPI.Completions(this._client); diff --git a/src/resources/beta/chat/completions.ts b/src/resources/beta/chat/completions.ts index 95fd0ac79..e002b6344 100644 --- a/src/resources/beta/chat/completions.ts +++ b/src/resources/beta/chat/completions.ts @@ -1,18 +1,18 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from 'openai/lib/ChatCompletionRunner'; -export { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from 'openai/lib/ChatCompletionRunner'; +import * as Core from '../../../core'; +import { APIResource } from '../../../resource'; +import { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from '../../../lib/ChatCompletionRunner'; +export { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from '../../../lib/ChatCompletionRunner'; import { ChatCompletionStreamingRunner, ChatCompletionStreamingFunctionRunnerParams, -} from 'openai/lib/ChatCompletionStreamingRunner'; +} from '../../../lib/ChatCompletionStreamingRunner'; export { ChatCompletionStreamingRunner, ChatCompletionStreamingFunctionRunnerParams, -} from 'openai/lib/ChatCompletionStreamingRunner'; -import { BaseFunctionsArgs } from 'openai/lib/RunnableFunction'; +} from '../../../lib/ChatCompletionStreamingRunner'; +import { BaseFunctionsArgs } from '../../../lib/RunnableFunction'; export { RunnableFunction, RunnableFunctions, @@ -20,13 +20,13 @@ export { RunnableFunctionWithoutParse, ParsingFunction, ParsingToolFunction, -} from 'openai/lib/RunnableFunction'; -import { ChatCompletionToolRunnerParams } from 'openai/lib/ChatCompletionRunner'; -export { ChatCompletionToolRunnerParams } from 'openai/lib/ChatCompletionRunner'; -import { ChatCompletionStreamingToolRunnerParams } from 'openai/lib/ChatCompletionStreamingRunner'; -export { ChatCompletionStreamingToolRunnerParams } from 'openai/lib/ChatCompletionStreamingRunner'; -import { ChatCompletionStream, type ChatCompletionStreamParams } from 'openai/lib/ChatCompletionStream'; -export { ChatCompletionStream, type ChatCompletionStreamParams } from 'openai/lib/ChatCompletionStream'; +} from '../../../lib/RunnableFunction'; +import { ChatCompletionToolRunnerParams } from '../../../lib/ChatCompletionRunner'; +export { ChatCompletionToolRunnerParams } from '../../../lib/ChatCompletionRunner'; +import { ChatCompletionStreamingToolRunnerParams } from '../../../lib/ChatCompletionStreamingRunner'; +export { ChatCompletionStreamingToolRunnerParams } from '../../../lib/ChatCompletionStreamingRunner'; +import { ChatCompletionStream, type ChatCompletionStreamParams } from '../../../lib/ChatCompletionStream'; +export { ChatCompletionStream, type ChatCompletionStreamParams } from '../../../lib/ChatCompletionStream'; export class Completions extends APIResource { /** diff --git a/src/resources/beta/threads/messages.ts b/src/resources/beta/threads/messages.ts index a1f90e1e4..a5307edbe 100644 --- a/src/resources/beta/threads/messages.ts +++ b/src/resources/beta/threads/messages.ts @@ -1,11 +1,11 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import * as MessagesAPI from 'openai/resources/beta/threads/messages'; -import * as AssistantsAPI from 'openai/resources/beta/assistants'; -import { CursorPage, type CursorPageParams } from 'openai/pagination'; +import * as Core from '../../../core'; +import { APIResource } from '../../../resource'; +import { isRequestOptions } from '../../../core'; +import * as MessagesAPI from './messages'; +import * as AssistantsAPI from '../assistants'; +import { CursorPage, type CursorPageParams } from '../../../pagination'; export class Messages extends APIResource { /** diff --git a/src/resources/beta/threads/runs/runs.ts b/src/resources/beta/threads/runs/runs.ts index 267c0944d..715750604 100644 --- a/src/resources/beta/threads/runs/runs.ts +++ b/src/resources/beta/threads/runs/runs.ts @@ -1,19 +1,19 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIPromise } from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import { AssistantStream, RunCreateParamsBaseStream } from 'openai/lib/AssistantStream'; -import { sleep } from 'openai/core'; -import { RunSubmitToolOutputsParamsStream } from 'openai/lib/AssistantStream'; -import * as RunsAPI from 'openai/resources/beta/threads/runs/runs'; -import * as AssistantsAPI from 'openai/resources/beta/assistants'; -import * as MessagesAPI from 'openai/resources/beta/threads/messages'; -import * as ThreadsAPI from 'openai/resources/beta/threads/threads'; -import * as StepsAPI from 'openai/resources/beta/threads/runs/steps'; -import { CursorPage, type CursorPageParams } from 'openai/pagination'; -import { Stream } from 'openai/streaming'; +import * as Core from '../../../../core'; +import { APIPromise } from '../../../../core'; +import { APIResource } from '../../../../resource'; +import { isRequestOptions } from '../../../../core'; +import { AssistantStream, RunCreateParamsBaseStream } from '../../../../lib/AssistantStream'; +import { sleep } from '../../../../core'; +import { RunSubmitToolOutputsParamsStream } from '../../../../lib/AssistantStream'; +import * as RunsAPI from './runs'; +import * as AssistantsAPI from '../../assistants'; +import * as MessagesAPI from '../messages'; +import * as ThreadsAPI from '../threads'; +import * as StepsAPI from './steps'; +import { CursorPage, type CursorPageParams } from '../../../../pagination'; +import { Stream } from '../../../../streaming'; export class Runs extends APIResource { steps: StepsAPI.Steps = new StepsAPI.Steps(this._client); diff --git a/src/resources/beta/threads/runs/steps.ts b/src/resources/beta/threads/runs/steps.ts index 203741f4b..0cbb60ca4 100644 --- a/src/resources/beta/threads/runs/steps.ts +++ b/src/resources/beta/threads/runs/steps.ts @@ -1,10 +1,10 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import * as StepsAPI from 'openai/resources/beta/threads/runs/steps'; -import { CursorPage, type CursorPageParams } from 'openai/pagination'; +import * as Core from '../../../../core'; +import { APIResource } from '../../../../resource'; +import { isRequestOptions } from '../../../../core'; +import * as StepsAPI from './steps'; +import { CursorPage, type CursorPageParams } from '../../../../pagination'; export class Steps extends APIResource { /** diff --git a/src/resources/beta/threads/threads.ts b/src/resources/beta/threads/threads.ts index e1fb3a2d4..662dcd09f 100644 --- a/src/resources/beta/threads/threads.ts +++ b/src/resources/beta/threads/threads.ts @@ -1,15 +1,15 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIPromise } from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from 'openai/lib/AssistantStream'; -import * as ThreadsAPI from 'openai/resources/beta/threads/threads'; -import * as AssistantsAPI from 'openai/resources/beta/assistants'; -import * as MessagesAPI from 'openai/resources/beta/threads/messages'; -import * as RunsAPI from 'openai/resources/beta/threads/runs/runs'; -import { Stream } from 'openai/streaming'; +import * as Core from '../../../core'; +import { APIPromise } from '../../../core'; +import { APIResource } from '../../../resource'; +import { isRequestOptions } from '../../../core'; +import { AssistantStream, ThreadCreateAndRunParamsBaseStream } from '../../../lib/AssistantStream'; +import * as ThreadsAPI from './threads'; +import * as AssistantsAPI from '../assistants'; +import * as MessagesAPI from './messages'; +import * as RunsAPI from './runs/runs'; +import { Stream } from '../../../streaming'; export class Threads extends APIResource { runs: RunsAPI.Runs = new RunsAPI.Runs(this._client); diff --git a/src/resources/beta/vector-stores/file-batches.ts b/src/resources/beta/vector-stores/file-batches.ts index 3ccdd0108..94f185c0f 100644 --- a/src/resources/beta/vector-stores/file-batches.ts +++ b/src/resources/beta/vector-stores/file-batches.ts @@ -1,15 +1,15 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import { sleep } from 'openai/core'; -import { Uploadable } from 'openai/core'; -import { allSettledWithThrow } from 'openai/lib/Util'; -import * as FileBatchesAPI from 'openai/resources/beta/vector-stores/file-batches'; -import * as FilesAPI from 'openai/resources/beta/vector-stores/files'; -import { VectorStoreFilesPage } from 'openai/resources/beta/vector-stores/files'; -import { type CursorPageParams } from 'openai/pagination'; +import * as Core from '../../../core'; +import { APIResource } from '../../../resource'; +import { isRequestOptions } from '../../../core'; +import { sleep } from '../../../core'; +import { Uploadable } from '../../../core'; +import { allSettledWithThrow } from '../../../lib/Util'; +import * as FileBatchesAPI from './file-batches'; +import * as FilesAPI from './files'; +import { VectorStoreFilesPage } from './files'; +import { type CursorPageParams } from '../../../pagination'; export class FileBatches extends APIResource { /** diff --git a/src/resources/beta/vector-stores/files.ts b/src/resources/beta/vector-stores/files.ts index ff5094065..0082ee5fa 100644 --- a/src/resources/beta/vector-stores/files.ts +++ b/src/resources/beta/vector-stores/files.ts @@ -1,11 +1,11 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import { sleep, Uploadable } from 'openai/core'; -import * as FilesAPI from 'openai/resources/beta/vector-stores/files'; -import { CursorPage, type CursorPageParams } from 'openai/pagination'; +import * as Core from '../../../core'; +import { APIResource } from '../../../resource'; +import { isRequestOptions } from '../../../core'; +import { sleep, Uploadable } from '../../../core'; +import * as FilesAPI from './files'; +import { CursorPage, type CursorPageParams } from '../../../pagination'; export class Files extends APIResource { /** diff --git a/src/resources/beta/vector-stores/vector-stores.ts b/src/resources/beta/vector-stores/vector-stores.ts index 0409f3af7..3f5df1fc5 100644 --- a/src/resources/beta/vector-stores/vector-stores.ts +++ b/src/resources/beta/vector-stores/vector-stores.ts @@ -1,12 +1,12 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import * as VectorStoresAPI from 'openai/resources/beta/vector-stores/vector-stores'; -import * as FileBatchesAPI from 'openai/resources/beta/vector-stores/file-batches'; -import * as FilesAPI from 'openai/resources/beta/vector-stores/files'; -import { CursorPage, type CursorPageParams } from 'openai/pagination'; +import * as Core from '../../../core'; +import { APIResource } from '../../../resource'; +import { isRequestOptions } from '../../../core'; +import * as VectorStoresAPI from './vector-stores'; +import * as FileBatchesAPI from './file-batches'; +import * as FilesAPI from './files'; +import { CursorPage, type CursorPageParams } from '../../../pagination'; export class VectorStores extends APIResource { files: FilesAPI.Files = new FilesAPI.Files(this._client); diff --git a/src/resources/chat/chat.ts b/src/resources/chat/chat.ts index 925401fe1..da4e90d42 100644 --- a/src/resources/chat/chat.ts +++ b/src/resources/chat/chat.ts @@ -1,8 +1,8 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import { APIResource } from 'openai/resource'; -import * as ChatAPI from 'openai/resources/chat/chat'; -import * as CompletionsAPI from 'openai/resources/chat/completions'; +import { APIResource } from '../../resource'; +import * as ChatAPI from './chat'; +import * as CompletionsAPI from './completions'; export class Chat extends APIResource { completions: CompletionsAPI.Completions = new CompletionsAPI.Completions(this._client); diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index 1098499b9..07b75debe 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -1,13 +1,13 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIPromise } from 'openai/core'; -import { APIResource } from 'openai/resource'; -import * as ChatCompletionsAPI from 'openai/resources/chat/completions'; -import * as CompletionsAPI from 'openai/resources/completions'; -import * as Shared from 'openai/resources/shared'; -import * as ChatAPI from 'openai/resources/chat/chat'; -import { Stream } from 'openai/streaming'; +import * as Core from '../../core'; +import { APIPromise } from '../../core'; +import { APIResource } from '../../resource'; +import * as ChatCompletionsAPI from './completions'; +import * as CompletionsAPI from '../completions'; +import * as Shared from '../shared'; +import * as ChatAPI from './chat'; +import { Stream } from '../../streaming'; export class Completions extends APIResource { /** diff --git a/src/resources/completions.ts b/src/resources/completions.ts index c37c6d802..26bf5ca0d 100644 --- a/src/resources/completions.ts +++ b/src/resources/completions.ts @@ -1,11 +1,11 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIPromise } from 'openai/core'; -import { APIResource } from 'openai/resource'; -import * as CompletionsAPI from 'openai/resources/completions'; -import * as ChatCompletionsAPI from 'openai/resources/chat/completions'; -import { Stream } from 'openai/streaming'; +import * as Core from '../core'; +import { APIPromise } from '../core'; +import { APIResource } from '../resource'; +import * as CompletionsAPI from './completions'; +import * as ChatCompletionsAPI from './chat/completions'; +import { Stream } from '../streaming'; export class Completions extends APIResource { /** diff --git a/src/resources/embeddings.ts b/src/resources/embeddings.ts index 208ceb240..28c954711 100644 --- a/src/resources/embeddings.ts +++ b/src/resources/embeddings.ts @@ -1,8 +1,8 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import * as EmbeddingsAPI from 'openai/resources/embeddings'; +import * as Core from '../core'; +import { APIResource } from '../resource'; +import * as EmbeddingsAPI from './embeddings'; export class Embeddings extends APIResource { /** diff --git a/src/resources/files.ts b/src/resources/files.ts index 5d284a071..4c4030dbe 100644 --- a/src/resources/files.ts +++ b/src/resources/files.ts @@ -1,14 +1,14 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import { type Response } from 'openai/_shims/index'; -import { sleep } from 'openai/core'; -import { APIConnectionTimeoutError } from 'openai/error'; -import * as FilesAPI from 'openai/resources/files'; -import { type Uploadable, multipartFormRequestOptions } from 'openai/core'; -import { Page } from 'openai/pagination'; +import * as Core from '../core'; +import { APIResource } from '../resource'; +import { isRequestOptions } from '../core'; +import { type Response } from '../_shims/index'; +import { sleep } from '../core'; +import { APIConnectionTimeoutError } from '../error'; +import * as FilesAPI from './files'; +import { type Uploadable, multipartFormRequestOptions } from '../core'; +import { Page } from '../pagination'; export class Files extends APIResource { /** diff --git a/src/resources/fine-tuning/fine-tuning.ts b/src/resources/fine-tuning/fine-tuning.ts index c8d688b0c..b1ba34ecf 100644 --- a/src/resources/fine-tuning/fine-tuning.ts +++ b/src/resources/fine-tuning/fine-tuning.ts @@ -1,7 +1,7 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import { APIResource } from 'openai/resource'; -import * as JobsAPI from 'openai/resources/fine-tuning/jobs/jobs'; +import { APIResource } from '../../resource'; +import * as JobsAPI from './jobs/jobs'; export class FineTuning extends APIResource { jobs: JobsAPI.Jobs = new JobsAPI.Jobs(this._client); diff --git a/src/resources/fine-tuning/jobs/checkpoints.ts b/src/resources/fine-tuning/jobs/checkpoints.ts index 468cb3001..0e3cdeb79 100644 --- a/src/resources/fine-tuning/jobs/checkpoints.ts +++ b/src/resources/fine-tuning/jobs/checkpoints.ts @@ -1,10 +1,10 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import * as CheckpointsAPI from 'openai/resources/fine-tuning/jobs/checkpoints'; -import { CursorPage, type CursorPageParams } from 'openai/pagination'; +import * as Core from '../../../core'; +import { APIResource } from '../../../resource'; +import { isRequestOptions } from '../../../core'; +import * as CheckpointsAPI from './checkpoints'; +import { CursorPage, type CursorPageParams } from '../../../pagination'; export class Checkpoints extends APIResource { /** diff --git a/src/resources/fine-tuning/jobs/jobs.ts b/src/resources/fine-tuning/jobs/jobs.ts index 874d30047..403e0069f 100644 --- a/src/resources/fine-tuning/jobs/jobs.ts +++ b/src/resources/fine-tuning/jobs/jobs.ts @@ -1,11 +1,11 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import { isRequestOptions } from 'openai/core'; -import * as JobsAPI from 'openai/resources/fine-tuning/jobs/jobs'; -import * as CheckpointsAPI from 'openai/resources/fine-tuning/jobs/checkpoints'; -import { CursorPage, type CursorPageParams } from 'openai/pagination'; +import * as Core from '../../../core'; +import { APIResource } from '../../../resource'; +import { isRequestOptions } from '../../../core'; +import * as JobsAPI from './jobs'; +import * as CheckpointsAPI from './checkpoints'; +import { CursorPage, type CursorPageParams } from '../../../pagination'; export class Jobs extends APIResource { checkpoints: CheckpointsAPI.Checkpoints = new CheckpointsAPI.Checkpoints(this._client); diff --git a/src/resources/images.ts b/src/resources/images.ts index 95f0b6ff2..337909578 100644 --- a/src/resources/images.ts +++ b/src/resources/images.ts @@ -1,9 +1,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import * as ImagesAPI from 'openai/resources/images'; -import { type Uploadable, multipartFormRequestOptions } from 'openai/core'; +import * as Core from '../core'; +import { APIResource } from '../resource'; +import * as ImagesAPI from './images'; +import { type Uploadable, multipartFormRequestOptions } from '../core'; export class Images extends APIResource { /** diff --git a/src/resources/models.ts b/src/resources/models.ts index 4d5bc57e9..1d94c6c55 100644 --- a/src/resources/models.ts +++ b/src/resources/models.ts @@ -1,9 +1,9 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import * as ModelsAPI from 'openai/resources/models'; -import { Page } from 'openai/pagination'; +import * as Core from '../core'; +import { APIResource } from '../resource'; +import * as ModelsAPI from './models'; +import { Page } from '../pagination'; export class Models extends APIResource { /** diff --git a/src/resources/moderations.ts b/src/resources/moderations.ts index b9b9d7fc6..c018f65e7 100644 --- a/src/resources/moderations.ts +++ b/src/resources/moderations.ts @@ -1,8 +1,8 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from 'openai/core'; -import { APIResource } from 'openai/resource'; -import * as ModerationsAPI from 'openai/resources/moderations'; +import * as Core from '../core'; +import { APIResource } from '../resource'; +import * as ModerationsAPI from './moderations'; export class Moderations extends APIResource { /**