mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-27 19:33:04 +08:00
Remove providers that arent configured
This commit is contained in:
@ -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
Reference in New Issue
Block a user