Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: Throw upstream error when invalid token in Astra DB Component #6045

Merged
merged 7 commits into from
Jan 31, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[autofix.ci] apply automated fixes
autofix-ci[bot] authored Jan 31, 2025

Verified

This commit was signed with the committer’s verified signature.
bitoku Ayato Tokubi
commit 070b50b1b9cc63596be5cefe6b7526b921c677ad
8 changes: 2 additions & 6 deletions src/backend/base/langflow/components/vectorstores/astradb.py
Original file line number Diff line number Diff line change
@@ -463,15 +463,11 @@ def _initialize_collection_options(self, api_endpoint: str | None = None):
"name": col.name,
"records": self.collection_data(collection_name=col.name, database=database),
"provider": (
col.options.vector.service.provider
if col.options.vector and col.options.vector.service
else None
col.options.vector.service.provider if col.options.vector and col.options.vector.service else None
),
"icon": "",
"model": (
col.options.vector.service.model_name
if col.options.vector and col.options.vector.service
else None
col.options.vector.service.model_name if col.options.vector and col.options.vector.service else None
),
}
for col in collection_list