Skip to content

Commit

Permalink
fix stream params type
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-schabel committed Jan 9, 2025
1 parent 0943968 commit e93c4c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { ReadableStream } from "stream/web";
import { ProviderPlugin } from "../provider-plugin";
import { StreamParams } from "./streaming-types";
import { ChatService } from "../../chat/chat-service";

export async function createSSEStream(
plugin: ProviderPlugin,
streamParams: StreamParams
streamParams: StreamParams & { chatService: ChatService }
): Promise<ReadableStream<Uint8Array>> {
const { chatService, assistantMessageId } = streamParams;
const streamOrReader = await plugin.prepareRequest(streamParams);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { ChatService } from "../../chat/chat-service";
import { ChatCompletionOptions } from "../provider-types";

export type StreamParams = {
chatId: string;
assistantMessageId: string;
userMessage: string;
chatService: ChatService;
options: ChatCompletionOptions;
tempId?: string;
};

0 comments on commit e93c4c6

Please sign in to comment.