2024-10-23 09:16:35 +08:00
|
|
|
from pydantic import Field
|
|
|
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UpstashConfig(BaseSettings):
|
|
|
|
|
"""
|
|
|
|
|
Configuration settings for Upstash vector database
|
|
|
|
|
"""
|
|
|
|
|
|
2025-09-15 13:06:33 +08:00
|
|
|
UPSTASH_VECTOR_URL: str | None = Field(
|
2024-10-23 09:16:35 +08:00
|
|
|
description="URL of the upstash server (e.g., 'https://vector.upstash.io')",
|
|
|
|
|
default=None,
|
|
|
|
|
)
|
|
|
|
|
|
2025-09-15 13:06:33 +08:00
|
|
|
UPSTASH_VECTOR_TOKEN: str | None = Field(
|
2024-10-23 09:16:35 +08:00
|
|
|
description="Token for authenticating with the upstash server",
|
|
|
|
|
default=None,
|
|
|
|
|
)
|