Skip to main content

Run the playground against an OpenAI-compliant model provider/proxy

The LangSmith playground allows you to use any model that is compliant with the OpenAI API. You can utilize your model by setting the Proxy Provider for OpenAI in the playground.

Deploy an OpenAI compliant model

Many providers offer OpenAI compliant models or proxy services. Some examples of this include:

You can use these providers to deploy your model and get an API endpoint that is compliant with the OpenAI API.

Take a look at the full specification for more information.

Use the model in the LangSmith Playground

Once you have deployed a model server, you can use it in the LangSmith Playground.

Enter the playground and change the provider to Custom Model Endpoint. Enter in your model endpoint in the Base URL field.

Custom Model Endpoint

Behind the scenes, the playground will use the ChatOpenAI from langchain-openai and pass in your endpoint as a base_url.

If everything is set up correctly, upon clicking Start you should see the model's response in the playground.

Alternative: Use the Proxy Provider option

Note: this is functionally equivalent to the Custom Model Endpoint provider option.

Enter the playground and select the Proxy Provider inside the OpenAI modal.

OpenAI Proxy Provider

If everything is set up correctly, you should see the model's response in the playground. You can also use this functionality to invoke downstream pipelines as well.

Save your model configuration

See how to store your model configuration for later use here.


Was this page helpful?


You can leave detailed feedback on GitHub.