chore: chat and text generatior same api direction

This commit is contained in:
Joel 2023-04-17 17:22:28 +08:00
parent 3bd9eabc7c
commit 3af2c7e22f
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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,

View File

@ -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",