mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 01:01:11 +03:00
Fixed linting errors
This commit is contained in:
+3
-3
@@ -2,8 +2,8 @@ import { INode, INodeData, INodeParams } from '../../../src/Interface'
|
|||||||
import { getBaseClasses } from '../../../src/utils'
|
import { getBaseClasses } from '../../../src/utils'
|
||||||
import { ICommonObject } from '../../../src'
|
import { ICommonObject } from '../../../src'
|
||||||
import { BufferMemory, BufferMemoryInput } from 'langchain/memory'
|
import { BufferMemory, BufferMemoryInput } from 'langchain/memory'
|
||||||
import { UpstashRedisChatMessageHistory, UpstashRedisChatMessageHistoryInput } from "langchain/stores/message/upstash_redis";
|
import { UpstashRedisChatMessageHistory, UpstashRedisChatMessageHistoryInput } from "langchain/stores/message/upstash_redis"
|
||||||
import { Redis, RedisConfigNodejs } from '@upstash/redis';
|
import { Redis, RedisConfigNodejs } from '@upstash/redis'
|
||||||
|
|
||||||
class UpstashRedisBackedChatMemory_Memory implements INode {
|
class UpstashRedisBackedChatMemory_Memory implements INode {
|
||||||
label: string
|
label: string
|
||||||
@@ -90,7 +90,7 @@ const initalizeUpstashRedis = (nodeData: INodeData, options: ICommonObject): Buf
|
|||||||
let isSessionIdUsingChatMessageId = false
|
let isSessionIdUsingChatMessageId = false
|
||||||
if (!sessionId && chatId) isSessionIdUsingChatMessageId = true
|
if (!sessionId && chatId) isSessionIdUsingChatMessageId = true
|
||||||
|
|
||||||
const upstashRedisConfig = ({ url: baseURL, token }) as RedisConfigNodejs;
|
const upstashRedisConfig = ({ url: baseURL, token }) as RedisConfigNodejs
|
||||||
const redisClient = new Redis(upstashRedisConfig)
|
const redisClient = new Redis(upstashRedisConfig)
|
||||||
let obj: UpstashRedisChatMessageHistoryInput = {
|
let obj: UpstashRedisChatMessageHistoryInput = {
|
||||||
sessionId: sessionId ? sessionId : chatId,
|
sessionId: sessionId ? sessionId : chatId,
|
||||||
|
|||||||
Reference in New Issue
Block a user