Skip to content
New issue

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

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

Already on GitHub? # to your account

refactor: move API key input into Cohere and NVIDIA rerank components #6339

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

ogabrielluiz
Copy link
Contributor

Move the API key input from the base compressor model to the specific Cohere and NVIDIA Rerank components, enhancing clarity and specificity in the input handling.

Remove generic API key input from base compressor model and add specific API key inputs for Cohere and NVIDIA Rerank components
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Feb 13, 2025
@github-actions github-actions bot added the refactor Maintenance tasks and housekeeping label Feb 13, 2025
Copy link
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ogabrielluiz Should we follow the same in upcoming PRs also?

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 13, 2025
@ogabrielluiz
Copy link
Contributor Author

Yes. This was mainly because the specific field came from a parent class causing the NVIDIA component and Cohere components to not be included when you add a Global Variable to the field (e.g NVIDIA API key didn't fill in on the NVIDIA Rerank component)

@ogabrielluiz ogabrielluiz added this pull request to the merge queue Feb 13, 2025
Merged via the queue into main with commit 63294b9 Feb 13, 2025
44 of 45 checks passed
@ogabrielluiz ogabrielluiz deleted the rename-api-key-compressors branch February 13, 2025 11:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
lgtm This PR has been approved by a maintainer refactor Maintenance tasks and housekeeping size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants