mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 20:14:13 +00:00
fix config w/ safety
This commit is contained in:
parent
4586692dee
commit
1ac188e1b3
4 changed files with 28 additions and 5 deletions
|
@ -8,6 +8,7 @@ import importlib
|
|||
from typing import Any, Dict
|
||||
|
||||
from llama_stack.distribution.datatypes import * # noqa: F403
|
||||
from termcolor import cprint
|
||||
|
||||
|
||||
def instantiate_class_type(fully_qualified_name):
|
||||
|
@ -47,6 +48,7 @@ async def instantiate_provider(
|
|||
routing_table = provider_config
|
||||
|
||||
inner_specs = {x.provider_id: x for x in provider_spec.inner_specs}
|
||||
cprint(f"inner_specs: {inner_specs}", "cyan")
|
||||
inner_impls = []
|
||||
for routing_entry in routing_table:
|
||||
impl = await instantiate_provider(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue