mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-08 04:54:38 +00:00
routers wip
This commit is contained in:
parent
ef0e717bd0
commit
f3ff3a3001
4 changed files with 246 additions and 155 deletions
17
llama_stack/providers/routers/inference/__init__.py
Normal file
17
llama_stack/providers/routers/inference/__init__.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# 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 Any, List, Tuple
|
||||
|
||||
from llama_stack.distribution.datatypes import Api
|
||||
|
||||
|
||||
async def get_router_impl(inner_impls: List[Tuple[str, Any]], deps: List[Api]):
|
||||
from .inference import InferenceRouterImpl
|
||||
|
||||
impl = InferenceRouterImpl(inner_impls, deps)
|
||||
await impl.initialize()
|
||||
return impl
|
Loading…
Add table
Add a link
Reference in a new issue