Merge branch 'main' into redis-kv-store

This commit is contained in:
Shrinit Goyal 2025-08-19 18:07:58 +05:30 committed by GitHub
commit 5a0d71452e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
186 changed files with 15553 additions and 8443 deletions

View file

@ -77,6 +77,8 @@ class PostgresKVStoreConfig(CommonConfig):
db: str = "llamastack"
user: str
password: str | None = None
ssl_mode: str | None = None
ca_cert_path: str | None = None
table_name: str = "llamastack_kvstore"
@classmethod

View file

@ -30,6 +30,8 @@ class PostgresKVStoreImpl(KVStore):
database=self.config.db,
user=self.config.user,
password=self.config.password,
sslmode=self.config.ssl_mode,
sslrootcert=self.config.ca_cert_path,
)
self.conn.autocommit = True
self.cursor = self.conn.cursor(cursor_factory=DictCursor)