mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
chore(storage): drop unused sqlite control config and ignore missing stubs
This commit is contained in:
parent
7e78d5220a
commit
7efdbfa4ab
4 changed files with 8 additions and 24 deletions
|
|
@ -356,6 +356,10 @@ exclude = [
|
||||||
module = [
|
module = [
|
||||||
"yaml",
|
"yaml",
|
||||||
"fire",
|
"fire",
|
||||||
|
"redis.asyncio",
|
||||||
|
"psycopg2",
|
||||||
|
"psycopg2.extras",
|
||||||
|
"psycopg2.extensions",
|
||||||
"torchtune.*",
|
"torchtune.*",
|
||||||
"fairscale.*",
|
"fairscale.*",
|
||||||
"torchvision.*",
|
"torchvision.*",
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import psycopg2
|
import psycopg2 # type: ignore[import-not-found]
|
||||||
from psycopg2.extensions import connection as PGConnection
|
from psycopg2.extensions import connection as PGConnection # type: ignore[import-not-found]
|
||||||
from psycopg2.extras import DictCursor
|
from psycopg2.extras import DictCursor # type: ignore[import-not-found]
|
||||||
|
|
||||||
from llama_stack.log import get_logger
|
from llama_stack.log import get_logger
|
||||||
from llama_stack_api.internal.kvstore import KVStore
|
from llama_stack_api.internal.kvstore import KVStore
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from redis.asyncio import Redis
|
from redis.asyncio import Redis # type: ignore[import-not-found]
|
||||||
|
|
||||||
from llama_stack_api.internal.kvstore import KVStore
|
from llama_stack_api.internal.kvstore import KVStore
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the terms described in the LICENSE file in
|
|
||||||
# the root directory of this source tree.
|
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
|
||||||
|
|
||||||
from llama_stack_api import json_schema_type
|
|
||||||
|
|
||||||
|
|
||||||
@json_schema_type
|
|
||||||
class SqliteControlPlaneConfig(BaseModel):
|
|
||||||
db_path: str = Field(
|
|
||||||
description="File path for the sqlite database",
|
|
||||||
)
|
|
||||||
table_name: str = Field(
|
|
||||||
default="llamastack_control_plane",
|
|
||||||
description="Table into which all the keys will be placed",
|
|
||||||
)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue