@plteam/chat-ui
Version:
CUI Kit is a free and open-source library for creating AI assistant chat interfaces, built with React, Material UI, and TypeScript
12 lines (11 loc) • 437 B
TypeScript
import { MessageModel } from '../../MessageModel';
type ChatGptResponseType = {
choices: Array<{
delta: {
content?: string | null;
};
finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter' | 'function_call' | null;
}>;
};
export declare const chatGptStreamParser: <T extends ChatGptResponseType>(value: string, assistant: MessageModel<any>) => T | undefined;
export {};