Skip to main content
This will help you get started with Pipeshift completion models (LLMs) using LangChain. For detailed documentation on Pipeshift features and configuration options, please refer to the API reference.

Overview

Integration details

Setup

To access Pipeshift models you’ll need to create a Pipeshift account, get an API key, and install the langchain-pipeshift integration package.

Credentials

Head to Pipeshift to sign up to Pipeshift and generate an API key. Once you’ve done this set the PIPESHIFT_API_KEY environment variable:
If you want to get automated tracing of your model calls you can also set your LangSmith API key by uncommenting below:

Installation

The LangChain Pipeshift integration lives in the langchain-pipeshift package:

Instantiation

Now we can instantiate our model object and generate chat completions:

Invocation

Chaining

We can also chain our llm with a prompt template

API reference

For detailed documentation of all Pipeshift features and configurations head to the API reference: dashboard.pipeshift.com/docs