mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 20:14:13 +00:00
add redis adapter + sqlite provider
This commit is contained in:
parent
b31f0f6e4e
commit
bbf0b59ae4
11 changed files with 251 additions and 0 deletions
29
llama_stack/providers/registry/control_plane.py
Normal file
29
llama_stack/providers/registry/control_plane.py
Normal file
|
@ -0,0 +1,29 @@
|
|||
# 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 typing import List
|
||||
|
||||
from llama_stack.core.datatypes import * # noqa: F403
|
||||
|
||||
|
||||
def available_providers() -> List[ProviderSpec]:
|
||||
return [
|
||||
InlineProviderSpec(
|
||||
api=Api.control_plane,
|
||||
provider_id="sqlite",
|
||||
pip_packages=["aiosqlite"],
|
||||
module="llama_stack.providers.impls.sqlite.control_plane",
|
||||
config_class="llama_stack.providers.impls.sqlite.control_plane.SqliteControlPlaneConfig",
|
||||
),
|
||||
remote_provider_spec(
|
||||
Api.control_plane,
|
||||
AdapterSpec(
|
||||
adapter_id="redis",
|
||||
pip_packages=["redis"],
|
||||
module="llama_stack.providers.adapters.control_plane.redis",
|
||||
),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue