From 0c40688bf277f4fdd705a6904a539ab923d0f767 Mon Sep 17 00:00:00 2001 From: Colin Fortuner Date: Sat, 7 Sep 2024 10:56:15 -0400 Subject: [PATCH] streaming type support --- src/openai-client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openai-client.ts b/src/openai-client.ts index 8e717e2..f83aadd 100644 --- a/src/openai-client.ts +++ b/src/openai-client.ts @@ -207,9 +207,9 @@ export class OpenAIClient { } /** Create a chat completion and stream back partial progress. */ - async streamChatCompletion( - params: ChatStreamParams>, - opts?: RequestOpts + async streamChatCompletion( + params: ChatStreamParams>, + opts?: R ): Promise { if (this.getProvider(opts?.headers?.baseUrl) === 'anthropic') { const anthropicParams = this.convertChatParamsToAnthropicFormat(params as ChatParams<'anthropic'>);