mirror of https://github.com/langgenius/dify.git
chore: chat and text generatior same api direction
This commit is contained in:
parent
3bd9eabc7c
commit
3af2c7e22f
|
|
@ -24,7 +24,7 @@ completionClient.createCompletionMessage(inputs, query, responseMode, user)
|
|||
// Create a chat client
|
||||
const chatClient = new ChatClient(API_KEY)
|
||||
// Create a chat message
|
||||
chatClient.createChatMessage(inputs, query, user, responseMode, conversationId)
|
||||
chatClient.createChatMessage(inputs, query, responseMode, user, conversationId)
|
||||
// Fetch conversations
|
||||
chatClient.getConversations(user)
|
||||
// Fetch conversation messages
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export class LangGeniusClient {
|
|||
}
|
||||
|
||||
export class CompletionClient extends LangGeniusClient {
|
||||
createCompletionMessage(inputs, query, responseMode, user) {
|
||||
createCompletionMessage(inputs, query, user, responseMode) {
|
||||
const data = {
|
||||
inputs,
|
||||
query,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "langgenius-client",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "This is the Node.js SDK for the LangGenius API, which allows you to easily integrate LangGenius into your Node.js applications.",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
|
|
|
|||
Loading…
Reference in New Issue