Skip to content

Commit 5754fce

Browse files
committed
revert "remove shim-types imports in custom code"
This reverts commit 00458ac.
1 parent b7d5408 commit 5754fce

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/lib/AssistantStream.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
RunSubmitToolOutputsParamsBase,
1919
RunSubmitToolOutputsParamsStreaming,
2020
} from '../resources/beta/threads/runs/runs';
21+
import { type ReadableStream } from '../internal/shim-types';
2122
import { Stream } from '../streaming';
2223
import { APIUserAbortError, OpenAIError } from '../error';
2324
import {

src/lib/ChatCompletionStream.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
AbstractChatCompletionRunner,
1818
type AbstractChatCompletionRunnerEvents,
1919
} from './AbstractChatCompletionRunner';
20+
import { type ReadableStream } from '../internal/shim-types';
2021
import { Stream } from '../streaming';
2122
import OpenAI from '../index';
2223
import { ParsedChatCompletion } from '../resources/chat/completions';

src/lib/ChatCompletionStreamingRunner.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
type ChatCompletionCreateParamsStreaming,
44
} from '../resources/chat/completions';
55
import { RunnerOptions, type AbstractChatCompletionRunnerEvents } from './AbstractChatCompletionRunner';
6+
import { type ReadableStream } from '../internal/shim-types';
67
import { RunnableTools, type BaseFunctionsArgs } from './RunnableFunction';
78
import { ChatCompletionSnapshot, ChatCompletionStream } from './ChatCompletionStream';
89
import OpenAI from '../index';

0 commit comments

Comments
 (0)