mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-12 23:01:15 +00:00
fix(core): update version and simplify validation error message
This commit is contained in:
parent
a1ea1f24b9
commit
73ef8afb51
2 changed files with 3 additions and 6 deletions
|
|
@ -18,11 +18,11 @@ __all__ = [
|
|||
"ReMeFs",
|
||||
]
|
||||
|
||||
__version__ = "0.3.0.0a1"
|
||||
__version__ = "0.3.0.0a2"
|
||||
|
||||
|
||||
"""
|
||||
conda create -n fl_test2 python=3.10
|
||||
conda activate fl_test2
|
||||
conda env remove -n fl_test2
|
||||
"""
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -23,10 +23,7 @@ class BaseMemoryStore(ABC):
|
|||
# Validate store_name to prevent SQL injection
|
||||
# Only allow alphanumeric characters and underscores
|
||||
if not re.match(r"^[a-zA-Z0-9_]+$", store_name):
|
||||
raise ValueError(
|
||||
f"Invalid store_name: '{store_name}'. "
|
||||
"Only alphanumeric characters and underscores are allowed."
|
||||
)
|
||||
raise ValueError(f"Invalid '{store_name}'. Only alphanumeric characters and underscores are allowed.")
|
||||
self.store_name: str = store_name
|
||||
self.embedding_model: BaseEmbeddingModel = embedding_model
|
||||
self.fts_enabled: bool = fts_enabled
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue