fix: removed beta from current date (#4901)

* Removed beta from current date

* [autofix.ci] apply automated fixes

* refactor: improve error message handling in CloudflareWorkersAIEmbeddings

* Fix filter sidebar test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Lucas Oliveira 2024-11-28 14:02:15 -03:00 • committed by GitHub
commit 79e3d3f50d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View file

@ -75,6 +75,7 @@ class CloudflareWorkersAIEmbeddingsComponent(LCModelComponent):
strip_new_lines=self.strip_new_lines,
)
except Exception as e:
raise ValueError(f"Could not connect to CloudflareWorkersAIEmbeddings API: {e!s}") from e
msg = f"Could not connect to CloudflareWorkersAIEmbeddings API: {e!s}"
raise ValueError(msg) from e
return embeddings

View file

@ -12,7 +12,6 @@ class CurrentDateComponent(Component):
display_name = "Current Date"
description = "Returns the current date and time in the selected timezone."
icon = "clock"
beta = True
name = "CurrentDate"
inputs = [