@@ -8,28 +8,28 @@ import {
88 TextDelta ,
99 MessageDelta ,
1010 MessageContent ,
11- } from 'openai /resources/beta/threads/messages' ;
12- import * as Core from 'openai /core' ;
13- import { RequestOptions } from 'openai /core' ;
11+ } from '.. /resources/beta/threads/messages' ;
12+ import * as Core from '.. /core' ;
13+ import { RequestOptions } from '.. /core' ;
1414import {
1515 Run ,
1616 RunCreateParamsBase ,
1717 RunCreateParamsStreaming ,
1818 Runs ,
1919 RunSubmitToolOutputsParamsBase ,
2020 RunSubmitToolOutputsParamsStreaming ,
21- } from 'openai /resources/beta/threads/runs/runs' ;
22- import { type ReadableStream } from 'openai /_shims/index' ;
23- import { Stream } from 'openai /streaming' ;
24- import { APIUserAbortError , OpenAIError } from 'openai /error' ;
21+ } from '.. /resources/beta/threads/runs/runs' ;
22+ import { type ReadableStream } from '.. /_shims/index' ;
23+ import { Stream } from '.. /streaming' ;
24+ import { APIUserAbortError , OpenAIError } from '.. /error' ;
2525import {
2626 AssistantStreamEvent ,
2727 MessageStreamEvent ,
2828 RunStepStreamEvent ,
2929 RunStreamEvent ,
30- } from 'openai /resources/beta/assistants' ;
31- import { RunStep , RunStepDelta , ToolCall , ToolCallDelta } from 'openai /resources/beta/threads/runs/steps' ;
32- import { ThreadCreateAndRunParamsBase , Threads } from 'openai /resources/beta/threads/threads' ;
30+ } from '.. /resources/beta/assistants' ;
31+ import { RunStep , RunStepDelta , ToolCall , ToolCallDelta } from '.. /resources/beta/threads/runs/steps' ;
32+ import { ThreadCreateAndRunParamsBase , Threads } from '.. /resources/beta/threads/threads' ;
3333import { BaseEvents , EventStream } from './EventStream' ;
3434
3535export interface AssistantStreamEvents extends BaseEvents {
@@ -192,7 +192,7 @@ export class AssistantStream
192192 runs : Runs ,
193193 params : RunSubmitToolOutputsParamsStream ,
194194 options : RequestOptions | undefined ,
195- ) {
195+ ) : AssistantStream {
196196 const runner = new AssistantStream ( ) ;
197197 runner . _run ( ( ) =>
198198 runner . _runToolAssistantStream ( threadId , runId , runs , params , {
@@ -238,7 +238,7 @@ export class AssistantStream
238238 params : ThreadCreateAndRunParamsBaseStream ,
239239 thread : Threads ,
240240 options ?: RequestOptions ,
241- ) {
241+ ) : AssistantStream {
242242 const runner = new AssistantStream ( ) ;
243243 runner . _run ( ( ) =>
244244 runner . _threadAssistantStream ( params , thread , {
@@ -254,7 +254,7 @@ export class AssistantStream
254254 runs : Runs ,
255255 params : RunCreateParamsBaseStream ,
256256 options ?: RequestOptions ,
257- ) {
257+ ) : AssistantStream {
258258 const runner = new AssistantStream ( ) ;
259259 runner . _run ( ( ) =>
260260 runner . _runAssistantStream ( threadId , runs , params , {
0 commit comments