Skip to content

Add option to use client certificates. #533

Description

@PhilipMay

We want to secure our Azure OpenAI access with client certificates. To do this we need the option to add one to "requests".

I do not see an option to do this. If waned I can provide a PR.

Activity

  1. PhilipMay commented on Jul 11, 2023

    @PhilipMay
    Author

    The request function of the requests package has an option called cert that needs to be set.

    See https://requests.readthedocs.io/en/latest/api/#requests.Session.request

  2. kristapratico commented on Jul 11, 2023

    @kristapratico
    Contributor

    @PhilipMay you might try passing in your own requests.Session using the openai.requestssession variable and setting the cert. Something like this:

    import requests
    
    session = requests.Session()
    session.cert = <your cert>
    openai.requestssession = session
  3. added
    Azurefor issues relating to the Azure OpenAI service
    on Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azurefor issues relating to the Azure OpenAI service

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions