Merge branch 'main' into models_api_2

This commit is contained in:
Xi Yan 2024-09-18 22:36:48 -07:00 committed by GitHub
commit df33e6fbec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 9689 additions and 113 deletions

View file

@ -30,12 +30,8 @@ def make_routing_entry_type(config_class: Any):
def configure_api_providers(
config: StackRunConfig, spec: DistributionSpec
) -> StackRunConfig:
cprint("Configuring APIs to serve...", "white", attrs=["bold"])
print("Enter comma-separated list of APIs to serve:")
apis = config.apis_to_serve or list(spec.providers.keys())
config.apis_to_serve = [a for a in apis if a != "telemetry"]
print("")
apis = [v.value for v in stack_apis()]
all_providers = api_providers()