mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 15:36:00 +08:00
fix: Incorrect argument types in createChatMessage (#4861)
This commit is contained in:
parent
f916aa0f92
commit
41e536109b
18
sdks/nodejs-client/index.d.ts
vendored
18
sdks/nodejs-client/index.d.ts
vendored
@ -14,15 +14,6 @@ interface HeaderParams {
|
|||||||
interface User {
|
interface User {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ChatMessageConfig {
|
|
||||||
inputs: any;
|
|
||||||
query: string;
|
|
||||||
user: User;
|
|
||||||
stream?: boolean;
|
|
||||||
conversation_id?: string | null;
|
|
||||||
files?: File[] | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
export declare class DifyClient {
|
export declare class DifyClient {
|
||||||
constructor(apiKey: string, baseUrl?: string);
|
constructor(apiKey: string, baseUrl?: string);
|
||||||
|
|
||||||
@ -54,7 +45,14 @@ export declare class CompletionClient extends DifyClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export declare class ChatClient 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(
|
getConversationMessages(
|
||||||
user: User,
|
user: User,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user