@selleo/chatbot-client
Version:
Client that can be integrated with a backend created with openai
13 lines (11 loc) • 565 B
TypeScript
import { MessageType } from '../../../../../../src/types';
export declare const openAIQueries: {
getMessages: (threadId: string, token: string | undefined, apiUrl?: string) => Promise<MessageType[]>;
};
export declare const openAIMutations: {
createThread: (token: string | undefined, apiUrl?: string) => Promise<{
threadId: string;
}>;
deleteThread: (threadId: string, token: string | undefined, apiUrl?: string) => Promise<void>;
createMessage: (threadId: string, content: string, token?: string, apiUrl?: string) => Promise<any>;
};