Add option for MongoDBChatMessageHistory to allow specifying the Session Id field name #22918
userlerueda
announced in
Ideas
Replies: 1 comment
-
I have submitted a proposal via #22944 that allows this customization |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
Add an optional keyword argument to MongoDBChatMessageHistory to allow specifying the session_id field name.
Motivation
In our organization, we have a different naming convention for mongodb fields than camelCase. There is not a single answer to using camelCase vs snake_case. The suggestion is to make the library flexible enough to allow this to be changed and not having to hardcode the value without an option to be modified.
Proposal (If applicable)
Change
langchain/libs/partners/mongodb/langchain_mongodb/chat_message_histories.py
Lines 30 to 49 in 9ef1569
Beta Was this translation helpful? Give feedback.
All reactions