feat(ts-sdk): add Upstash Vector vector store (#5811)

Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai>
This commit is contained in:
AxelRay
2026-07-06 23:41:05 +05:30
committed by GitHub
co-authored by kartik-mem0
parent c944bed460
commit 9d36b2c94d
12 changed files with 501 additions and 1 deletions
@@ -29,6 +29,13 @@ class UpstashVectorConfig(BaseModel):
if not client and not (url and token):
raise ValueError("Either a client or URL and token must be provided.")
# Persist the env-resolved credentials so the provider constructor receives
# them; the validator used to check the env vars but drop them, so an
# env-var-only config passed validation and then raised on build.
if not client:
values["url"] = url
values["token"] = token
return values
model_config = ConfigDict(arbitrary_types_allowed=True)