provider_type -> provider_id ... less confusing

This commit is contained in:
Ashwin Bharambe 2024-09-16 12:09:53 -07:00
parent ce6c868499
commit 6f5d9a3df8
11 changed files with 25 additions and 33 deletions

View file

@ -11,16 +11,15 @@ from pathlib import Path
import pkg_resources
import yaml
from termcolor import cprint
from llama_toolchain.cli.subcommand import Subcommand
from llama_toolchain.common.config_dirs import BUILDS_BASE_DIR
from llama_toolchain.common.exec import run_with_pty
from termcolor import cprint
from llama_toolchain.core.datatypes import * # noqa: F403
import os
from termcolor import cprint
class StackConfigure(Subcommand):
"""Llama cli for configuring llama toolchain configs"""
@ -109,7 +108,7 @@ class StackConfigure(Subcommand):
api2providers = build_config.distribution_spec.providers
stub_config = {
api_str: {"provider_type": provider}
api_str: {"provider_id": provider}
for api_str, provider in api2providers.items()
}