From 28412ab92c04c8f340d650044f6b11e9a830effd Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Mon, 28 Oct 2024 22:38:46 -0700 Subject: [PATCH] Only configure the first provider interactively --- llama_stack/distribution/configure.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/llama_stack/distribution/configure.py b/llama_stack/distribution/configure.py index 7b8c32665..f91fbfc43 100644 --- a/llama_stack/distribution/configure.py +++ b/llama_stack/distribution/configure.py @@ -99,6 +99,13 @@ def configure_api_providers( cprint(f"Configuring API `{api_str}`...", "green", attrs=["bold"]) updated_providers = [] for i, provider_type in enumerate(plist): + if i >= 1: + others = ", ".join(plist[i:]) + print( + f"Not configuring other providers ({others}) interactively. Please edit the resulting YAML directly.\n" + ) + break + print(f"> Configuring provider `({provider_type})`") updated_providers.append( configure_single_provider(