Skip to content

[Feature Request]: OpenAIEmbeddingFunction support azure ad token provider #5080

Open
@wuxu92

Description

@wuxu92

Describe the problem

current implementation only support the api key auth, but most of production environment prefer to use azure ad token, we need the ability to pass the azure_ad_token_provider parameter when init AzureOpenAI client instance.

Describe the proposed solution

add a new parameter as azure_ad_token_provider to OpenAIEmbeddingFunction.

class OpenAIEmbeddingFunction(EmbeddingFunction[Documents]):

Alternatives considered

No response

Importance

i cannot use Chroma without it

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions