mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
all endpoints w/ build->configure->run simple local works
This commit is contained in:
parent
1d463e1a36
commit
e0e2b2ef5b
2 changed files with 3 additions and 1 deletions
|
@ -158,6 +158,9 @@ def configure_api_providers(
|
||||||
)
|
)
|
||||||
|
|
||||||
config.routing_table[api_str] = routing_entries
|
config.routing_table[api_str] = routing_entries
|
||||||
|
config.api_providers[api_str] = PlaceholderProviderConfig(
|
||||||
|
providers=p if isinstance(p, list) else [p]
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
config.api_providers[api_str] = GenericProviderConfig(
|
config.api_providers[api_str] = GenericProviderConfig(
|
||||||
provider_id=p,
|
provider_id=p,
|
||||||
|
|
|
@ -321,7 +321,6 @@ async def resolve_impls_with_routing(run_config: StackRunConfig) -> Dict[Api, An
|
||||||
apis_to_serve = run_config.apis_to_serve or set(
|
apis_to_serve = run_config.apis_to_serve or set(
|
||||||
list(specs.keys()) + list(run_config.routing_table.keys())
|
list(specs.keys()) + list(run_config.routing_table.keys())
|
||||||
)
|
)
|
||||||
print("apis_to_serve", apis_to_serve)
|
|
||||||
for info in builtin_automatically_routed_apis():
|
for info in builtin_automatically_routed_apis():
|
||||||
source_api = info.routing_table_api
|
source_api = info.routing_table_api
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue