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

feat: add default_headers for Azure embedders #8699

Merged
merged 6 commits into from
Jan 12, 2025

Conversation

Amnah199
Copy link
Contributor

@Amnah199 Amnah199 commented Jan 9, 2025

Related Issues

Proposed Changes:

Replaces the old PR: #8535
Add default_headers parameter as a keyword argument to AzureOpenAIDocumentEmbedder and AzureOpenAITextEmbedder.

How did you test it?

Ran the tests and CI

Notes for the reviewer

Checklist

  • I have read the contributors guidelines and the code of conduct
  • I have updated the related issue with new insights and changes
  • I added unit tests and updated the docstrings
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I documented my code
  • I ran pre-commit hooks and fixed any issue

@coveralls
Copy link
Collaborator

coveralls commented Jan 9, 2025

Pull Request Test Coverage Report for Build 12735209951

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 31 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.04%) to 91.303%

Files with Coverage Reduction New Missed Lines %
components/embedders/azure_text_embedder.py 9 71.74%
components/embedders/azure_document_embedder.py 22 57.14%
Totals Coverage Status
Change from base Build 12713355058: 0.04%
Covered Lines: 8850
Relevant Lines: 9693

💛 - Coveralls

@Amnah199 Amnah199 marked this pull request as ready for review January 9, 2025 21:21
@Amnah199 Amnah199 requested review from a team as code owners January 9, 2025 21:21
@Amnah199 Amnah199 requested review from dfokina and anakin87 and removed request for a team January 9, 2025 21:21
Copy link
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

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

Looks good!

I would recommend adding a test_from_dict test case to both embedders and then merge.

@Amnah199 Amnah199 merged commit db76ae2 into main Jan 12, 2025
18 checks passed
@Amnah199 Amnah199 deleted the add-default-header-to-azure-embedders branch January 12, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:tests type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support default_headers for AzureOpenAIDocumentEmbedder and AzureOpenAITextEmbedder
3 participants