Use custom TLS certificates
This feature is only available for self-hosted enterprise customers, starting from version 0.6.
If you are interested in this plan, please contact sales@langchain.dev for more information.
This feature is currently only available for the Azure OpenAI model provider. More model providers will be supported in the future.
This will currently only affect model invocations through the LangSmith Playground, not Online Evaluation. The TLS certificates will apply to all Azure Deployment configurations in the playground.
You can use custom TLS certificates to connect to model providers in the LangSmith playground. This is useful if you are using a self-signed certificate, a certificate from a custom certificate authority or mutual TLS authentication.
To use custom TLS certificates, you need to set the following environment variables. See the self hosted deployment section for more information on how to set up application configuration.
LANGSMITH_PLAYGROUND_TLS_MODEL_PROVIDERS
: A comma-separated list of model providers that require custom TLS certificates. Note thatazure_openai
,openai
andcustom
are currently the only supported model provider that supports custom TLS certificates, but more providers will be supported in the future.LANGSMITH_PLAYGROUND_TLS_CA
: The custom certificate authority (CA) certificate in PEM format. This must be a file path (for a mounted volume).- [Optional]
LANGSMITH_PLAYGROUND_TLS_KEY
: The private key in PEM format. This must be a file path (for a mounted volume). This is usually only necessary for mutual TLS authentication. - [Optional]
LANGSMITH_PLAYGROUND_TLS_CERT
: The certificate in PEM format. This must be a file path (for a mounted volume). This is usually only necessary for mutual TLS authentication.
Once you have set these environment variables, enter the playground and select the model provider that requires custom TLS certificates. Set your model provider configuration as usual, and the custom TLS certificates will be used when connecting to the model provider.