Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Allow default headers to be passed to OpenAI API (chroma-core#1397)
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Allows users to pass custom headers to OpenAI API, enabling intermediary proxies with different authentication methods. - New functionality - New optional `default_headers` input at the `OpenAIEmbeddingFunction` class. ## Test plan *How are these changes tested?* - [x] Tests pass locally with `pytest` for python, `yarn test` for js ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?* Since this is a relatively specific feature, I believe it won't require an usage example in the docs. Co-authored-by: Gustavo Antoniassi <[email protected]>
- Loading branch information