Remove providers that arent configured

This commit is contained in:
Eric Hare
2025-03-06 14:48:20 -08:00
parent a3ea66ed66
commit 04ba256e06
2 changed files with 3 additions and 8 deletions

View File

@ -595,7 +595,7 @@ class AstraDBVectorStoreComponent(LCVectorStoreComponent):
]["options"] = [
"Bring your own",
"Nvidia",
*[key for key in vectorize_providers if key not in ["Bring your own", "Nvidia"]],
# *[key for key in vectorize_providers if key not in ["Bring your own", "Nvidia"]], # TODO: Restore
]
# For all not Bring your own or Nvidia providers, add metadata saying configure in Astra DB Portal
@ -608,11 +608,6 @@ class AstraDBVectorStoreComponent(LCVectorStoreComponent):
# Add the icon for the provider
my_metadata = {"icon": self.get_provider_icon(provider_name=provider)}
# Skip Bring your own and Nvidia, automatically configured
if provider not in {"Bring your own", "Nvidia"}:
# Add metadata to configure in Astra DB Portal
my_metadata[" "] = "Configure in Astra DB Portal"
# Add the metadata to the options metadata
build_config["collection_name"]["dialog_inputs"]["fields"]["data"]["node"]["template"][
"02_embedding_generation_provider"

File diff suppressed because one or more lines are too long