mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 02:53:30 +00:00
Allow passing provider_registry to resolve_impls()
This commit is contained in:
parent
8a3b64d1be
commit
b7d2b83d55
3 changed files with 13 additions and 12 deletions
|
@ -26,7 +26,10 @@ from pydantic import BaseModel, ValidationError
|
|||
from termcolor import cprint
|
||||
from typing_extensions import Annotated
|
||||
|
||||
from llama_stack.distribution.distribution import builtin_automatically_routed_apis
|
||||
from llama_stack.distribution.distribution import (
|
||||
builtin_automatically_routed_apis,
|
||||
get_provider_registry,
|
||||
)
|
||||
|
||||
from llama_stack.providers.utils.telemetry.tracing import (
|
||||
end_trace,
|
||||
|
@ -276,7 +279,7 @@ def main(
|
|||
|
||||
app = FastAPI()
|
||||
|
||||
impls = asyncio.run(resolve_impls(config))
|
||||
impls = asyncio.run(resolve_impls(config, get_provider_registry()))
|
||||
if Api.telemetry in impls:
|
||||
setup_logger(impls[Api.telemetry])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue