Skip to main content
This will help you get started with SambaNova chat models. For detailed documentation of all ChatSambaNova features and configurations head to the API reference. SambaNova’s SambaCloud is a cloud platform for performing inference with open-source models

Overview

Integration details

Model features

Setup

To access SambaNova models you will need to create a SambaCloud account, get an API key, install the langchain_sambanova integration package.

Credentials

Get an API Key from cloud.sambanova.ai Once you’ve done this set the SAMBANOVA_API_KEY environment variable:
To enable automated tracing of your model calls, set your LangSmith API key:

Installation

The LangChain SambaNova integration lives in the langchain_sambanova package:

Instantiation

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

Invocation

Streaming

Async

Async streaming

Tool calling

Structured outputs

Input image


API reference

For detailed documentation of all SambaNova features and configurations head to the API reference: docs.sambanova.ai/cloud/docs/get-started/overview