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

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

Open
pamelafox opened this issue Mar 17, 2024 · 1 comment
Open

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

pamelafox opened this issue Mar 17, 2024 · 1 comment
Labels
In Discussion Scope or design nuances need to be discussed Language: Python Pertains to the Python implementation of TypeChat. Suggestion New feature or request

Comments

@pamelafox
Copy link
Member

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.

@DanielRosenwasser DanielRosenwasser added Suggestion New feature or request In Discussion Scope or design nuances need to be discussed Language: Python Pertains to the Python implementation of TypeChat. labels Mar 18, 2024
@pamelafox
Copy link
Member Author

Keyless auth is now a strict requirement for all our samples, so this a blocker for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Discussion Scope or design nuances need to be discussed Language: Python Pertains to the Python implementation of TypeChat. Suggestion New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants