feat(cohere): update settings configuration (#5682)

- Make API key field required
- Move models from advanced settings

Co-authored-by: Eric Hare <ericrhare@gmail.com>
This commit is contained in:
Raphael Valdetaro 2025-01-17 16:28:20 -03:00 committed by GitHub
commit a47dee3065
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,11 +12,11 @@ class CohereEmbeddingsComponent(LCModelComponent):
name = "CohereEmbeddings"
inputs = [
SecretStrInput(name="cohere_api_key", display_name="Cohere API Key"),
SecretStrInput(name="cohere_api_key", display_name="Cohere API Key", required=True),
DropdownInput(
name="model",
display_name="Model",
advanced=True,
advanced=False,
options=[
"embed-english-v2.0",
"embed-multilingual-v2.0",