forked from phoenix-oss/llama-stack-mirror
Update distribution_id -> distribution_type, provider_id -> provider_type
This commit is contained in:
parent
3f090d1975
commit
70e682fbdf
18 changed files with 66 additions and 66 deletions
|
@ -284,13 +284,13 @@ def main(yaml_config: str, port: int = 5000, disable_ipv6: bool = False):
|
|||
for api_str, provider_config in config["providers"].items():
|
||||
api = Api(api_str)
|
||||
providers = all_providers[api]
|
||||
provider_id = provider_config["provider_id"]
|
||||
if provider_id not in providers:
|
||||
provider_type = provider_config["provider_type"]
|
||||
if provider_type not in providers:
|
||||
raise ValueError(
|
||||
f"Unknown provider `{provider_id}` is not available for API `{api}`"
|
||||
f"Unknown provider `{provider_type}` is not available for API `{api}`"
|
||||
)
|
||||
|
||||
provider_specs[api] = providers[provider_id]
|
||||
provider_specs[api] = providers[provider_type]
|
||||
|
||||
impls = resolve_impls(provider_specs, config)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue