fix: Incorrect argument types in createChatMessage (#4861)

This commit is contained in:
Kishida Takashi 2024-06-02 22:03:42 +09:00 committed by GitHub
parent f916aa0f92
commit 41e536109b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,15 +14,6 @@ interface HeaderParams {
interface User {
}
interface ChatMessageConfig {
inputs: any;
query: string;
user: User;
stream?: boolean;
conversation_id?: string | null;
files?: File[] | null;
}
export declare class DifyClient {
constructor(apiKey: string, baseUrl?: string);
@ -54,7 +45,14 @@ export declare class CompletionClient extends DifyClient {
}
export declare class ChatClient extends DifyClient {
createChatMessage(config: ChatMessageConfig): Promise<any>;
createChatMessage(
inputs: any,
query: string,
user: User,
stream?: boolean,
conversation_id?: string | null,
files?: File[] | null
): Promise<any>;
getConversationMessages(
user: User,