Enhance Code Consistency Across Repository with .editorconfig (#19023)
This commit is contained in:
parent
226afd4550
commit
bd1bbfee4b
274 changed files with 1271 additions and 1217 deletions
2
sdks/nodejs-client/.gitignore
vendored
2
sdks/nodejs-client/.gitignore
vendored
|
|
@ -45,4 +45,4 @@ package-lock.json
|
|||
.yarnrc.yml
|
||||
|
||||
# pmpm
|
||||
pnpm-lock.yaml
|
||||
pnpm-lock.yaml
|
||||
|
|
|
|||
12
sdks/nodejs-client/index.d.ts
vendored
12
sdks/nodejs-client/index.d.ts
vendored
|
|
@ -26,7 +26,7 @@ export declare class DifyClient {
|
|||
params?: Params,
|
||||
stream?: boolean,
|
||||
headerParams?: HeaderParams
|
||||
): Promise<any>;
|
||||
): Promise<any>;
|
||||
|
||||
messageFeedback(message_id: string, rating: number, user: User): Promise<any>;
|
||||
|
||||
|
|
@ -64,9 +64,9 @@ export declare class ChatClient extends DifyClient {
|
|||
|
||||
|
||||
getConversations(
|
||||
user: User,
|
||||
first_id?: string | null,
|
||||
limit?: number | null,
|
||||
user: User,
|
||||
first_id?: string | null,
|
||||
limit?: number | null,
|
||||
pinned?: boolean | null
|
||||
): Promise<any>;
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ export declare class ChatClient extends DifyClient {
|
|||
renameConversation(conversation_id: string, name: string, user: User,auto_generate:boolean): Promise<any>;
|
||||
|
||||
deleteConversation(conversation_id: string, user: User): Promise<any>;
|
||||
|
||||
|
||||
audioToText(data: FormData): Promise<any>;
|
||||
}
|
||||
|
||||
|
|
@ -88,4 +88,4 @@ export declare class WorkflowClient extends DifyClient {
|
|||
run(inputs: any, user: User, stream?: boolean,): Promise<any>;
|
||||
|
||||
stop(task_id: string, user: User): Promise<any>;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -334,12 +334,12 @@ export class ChatClient extends DifyClient {
|
|||
|
||||
export class WorkflowClient extends DifyClient {
|
||||
run(inputs,user,stream) {
|
||||
const data = {
|
||||
inputs,
|
||||
const data = {
|
||||
inputs,
|
||||
response_mode: stream ? "streaming" : "blocking",
|
||||
user
|
||||
user
|
||||
};
|
||||
|
||||
|
||||
return this.sendRequest(
|
||||
routes.runWorkflow.method,
|
||||
routes.runWorkflow.url(),
|
||||
|
|
@ -357,4 +357,4 @@ export class WorkflowClient extends DifyClient {
|
|||
data
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,4 +62,4 @@ describe('Send Requests', () => {
|
|||
errorMessage
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -32,4 +32,4 @@
|
|||
"babel-jest": "^29.5.0",
|
||||
"jest": "^29.5.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue