Skip to content

[Python] Support using keyless auth for Azure OpenAI #216

@pamelafox

Description

@pamelafox

We try to use keyless auth for all our samples, so if I were to use TypeChat in them, it'd need to support keyless auth, aka this constructor:

    openai_client = AsyncAzureOpenAI(
        api_version=api_version,
        azure_endpoint=endpoint,
        azure_ad_token_provider=token_provider,
    )

I'd be happy to just pass in my whole client to typechat as I typically already have it configured correctly for other uses in my app. Trying to match environment variables will be a pain since we have existing environment variable names that arent the same as yours.

Metadata

Metadata

Assignees

No one assigned

    Labels

    In DiscussionScope or design nuances need to be discussedLanguage: PythonPertains to the Python implementation of TypeChat.SuggestionNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions