mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 20:14:13 +00:00
Adapter -> Provider
This commit is contained in:
parent
db3e6dda07
commit
65a9e40174
15 changed files with 119 additions and 110 deletions
|
@ -33,17 +33,17 @@ class DistributionList(Subcommand):
|
|||
# eventually, this should query a registry at llama.meta.com/llamastack/distributions
|
||||
headers = [
|
||||
"Name",
|
||||
"Adapters",
|
||||
"ProviderSpecs",
|
||||
"Description",
|
||||
]
|
||||
|
||||
rows = []
|
||||
for dist in available_distributions():
|
||||
adapters = {k.value: v.adapter_id for k, v in dist.adapters.items()}
|
||||
providers = {k.value: v.provider_id for k, v in dist.provider_specs.items()}
|
||||
rows.append(
|
||||
[
|
||||
dist.name,
|
||||
json.dumps(adapters, indent=2),
|
||||
json.dumps(providers, indent=2),
|
||||
dist.description,
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue