Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: Incorrect argument types in createChatMessage (#4861)

Kishida Takashi41e536109b66
diff --git a/sdks/nodejs-client/index.d.ts b/sdks/nodejs-client/index.d.ts
index cf1d8252211..7fdd943f637 100644
--- a/sdks/nodejs-client/index.d.ts
+++ b/sdks/nodejs-client/index.d.ts
@@ -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,