We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 207d678 commit 5a6f2bbCopy full SHA for 5a6f2bb
veadk/memory/short_term_memory.py
@@ -70,10 +70,10 @@ class ShortTermMemory(BaseModel):
70
def model_post_init(self, __context: Any) -> None:
71
if self.db_url:
72
logger.info("The `db_url` is set, ignore `backend` option.")
73
- if self.db_url.count("@") > 1:
+ if self.db_url.count("@") > 1 or self.db_url.count(":") > 2:
74
logger.warning(
75
- "Multiple @ symbols detected in the database URL. "
76
- "Please encode `username/password` with `urllib.parse.quote_plus`. "
+ "Multiple `@` or `:` symbols detected in the database URL. "
+ "Please encode `username` or `password` with `urllib.parse.quote_plus`. "
77
"Examples: p@ssword→p%40ssword."
78
)
79
self._session_service = DatabaseSessionService(db_url=self.db_url)
0 commit comments