mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 19:04:19 +00:00
[bugfix] fix duplicate api endpoints (#139)
* fix server api to serve * remove print
This commit is contained in:
parent
208b861289
commit
6236634d84
1 changed files with 2 additions and 5 deletions
|
@ -433,9 +433,6 @@ def main(yaml_config: str, port: int = 5000, disable_ipv6: bool = False):
|
||||||
|
|
||||||
if config.apis_to_serve:
|
if config.apis_to_serve:
|
||||||
apis_to_serve = set(config.apis_to_serve)
|
apis_to_serve = set(config.apis_to_serve)
|
||||||
for inf in builtin_automatically_routed_apis():
|
|
||||||
if inf.router_api.value in apis_to_serve:
|
|
||||||
apis_to_serve.add(inf.routing_table_api)
|
|
||||||
else:
|
else:
|
||||||
apis_to_serve = set(impls.keys())
|
apis_to_serve = set(impls.keys())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue