Skip to content

Commit

Permalink
Fixed linting and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leedotpang committed Sep 3, 2024
1 parent 5040082 commit 75e0065
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"MomentoChatMessageHistory": "langchain_community.chat_message_histories.momento",
"MongoDBChatMessageHistory": "langchain_community.chat_message_histories.mongodb",
"Neo4jChatMessageHistory": "langchain_community.chat_message_histories.neo4j",
"OpenSearchChatMessageHistory": "langchain_community.chat_message_histories.opensearch",
"OpenSearchChatMessageHistory": "langchain_community.chat_message_histories.opensearch", # noqa: E501
"PostgresChatMessageHistory": "langchain_community.chat_message_histories.postgres",
"RedisChatMessageHistory": "langchain_community.chat_message_histories.redis",
"RocksetChatMessageHistory": "langchain_community.chat_message_histories.rocksetdb",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import json
import logging
from time import time
from typing import TYPE_CHECKING, List
from typing import List

from langchain_core.chat_history import BaseChatMessageHistory
from langchain_core.messages import BaseMessage, message_to_dict, messages_from_dict

if TYPE_CHECKING:
from opensearchpy import OpenSearch

logger = logging.getLogger(__name__)

DEFAULT_INDEX_NAME = "chat-history"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"MomentoChatMessageHistory",
"MongoDBChatMessageHistory",
"Neo4jChatMessageHistory",
"OpenSearchChatMessageHistory",
"PostgresChatMessageHistory",
"RedisChatMessageHistory",
"RocksetChatMessageHistory",
Expand Down

0 comments on commit 75e0065

Please sign in to comment.