Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions src/oss/python/integrations/chat/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -618,21 +618,13 @@ Certain model providers offer endpoints that are compatible with OpenAI's [Chat
/>

<Card
title="SambaNovaCloud"
title="SambaNova"
icon="link"
href="/oss/integrations/chat/sambanova"
arrow="true"
cta="View guide"
/>

<Card
title="SambaStudio"
icon="link"
href="/oss/integrations/chat/sambastudio"
arrow="true"
cta="View guide"
/>

<Card
title="ChatSeekrFlow"
icon="link"
Expand Down
33 changes: 15 additions & 18 deletions src/oss/python/integrations/chat/sambanova.mdx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
title: ChatSambaNovaCloud
title: ChatSambaNova
---

This will help you get started with SambaNovaCloud [chat models](/oss/langchain/models/). For detailed documentation of all ChatSambaNovaCloud features and configurations head to the [API reference](https://docs.sambanova.ai/cloud/docs/get-started/overview).
This will help you get started with SambaNova [chat models](/oss/langchain/models/). For detailed documentation of all `ChatSambaNova` features and configurations head to the [API reference](https://docs.sambanova.ai/cloud/docs/get-started/overview).

**[SambaNova](https://sambanova.ai/)'s** [SambaNova Cloud](https://cloud.sambanova.ai/) is a platform for performing inference with open-source models
**[SambaNova](https://sambanova.ai/)'s** [SambaCloud](http://cloud.sambanova.ai?utm_source=langchain&utm_medium=external&utm_campaign=cloud_signup) is a cloud platform for performing inference with open-source models

## Overview

### Integration details

| Class | Package | Local | Serializable | JS support | Downloads | Version |
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
| [ChatSambaNovaCloud](https://docs.sambanova.ai/cloud/docs/get-started/overview) | [langchain-sambanova](https://python.langchain.com/docs/integrations/providers/sambanova/) | ❌ | | ❌ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain_sambanova?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain_sambanova?style=flat-square&label=%20) |
| [`ChatSambaNova`](https://docs.sambanova.ai/cloud/docs/get-started/overview) | [`langchain-sambanova`](/oss/integrations/providers/sambanova/) | ❌ | beta | ❌ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain_sambanova?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain_sambanova?style=flat-square&label=%20) |

### Model features

Expand All @@ -22,31 +22,27 @@ This will help you get started with SambaNovaCloud [chat models](/oss/langchain/

## Setup

To access ChatSambaNovaCloud models you will need to create a [SambaNovaCloud](https://cloud.sambanova.ai/) account, get an API key, install the `langchain_sambanova` integration package.
To access SambaNova models you will need to create a [SambaCloud](http://cloud.sambanova.ai?utm_source=langchain&utm_medium=external&utm_campaign=cloud_signup) account, get an API key, install the `langchain_sambanova` integration package.

```bash
pip install langchain-sambanova
```

### Credentials

Get an API Key from [cloud.sambanova.ai](https://cloud.sambanova.ai/apis) and add it to your environment variables:

``` bash
export SAMBANOVA_API_KEY="your-api-key-here"
```
Get an API Key from [cloud.sambanova.ai](http://cloud.sambanova.ai/apis?utm_source=langchain&utm_medium=external&utm_campaign=cloud_signupapis) Once you've done this set the SAMBANOVA_API_KEY environment variable:

```python
import getpass
import os

if not os.getenv("SAMBANOVA_API_KEY"):
os.environ["SAMBANOVA_API_KEY"] = getpass.getpass(
"Enter your SambaNova Cloud API key: "
"Enter your SambaNova API key: "
)
```

If you want to get automated tracing of your model calls you can also set your [LangSmith](https://docs.smith.langchain.com/) API key by uncommenting below:
To enable automated tracing of your model calls, set your [LangSmith](https://docs.smith.langchain.com/) API key:

```python
os.environ["LANGSMITH_TRACING"] = "true"
Expand All @@ -55,7 +51,7 @@ os.environ["LANGSMITH_API_KEY"] = getpass.getpass("Enter your LangSmith API key:

### Installation

The LangChain **SambaNovaCloud** integration lives in the `langchain_sambanova` package:
The LangChain **SambaNova** integration lives in the `langchain_sambanova` package:

```python
pip install -qU langchain-sambanova
Expand All @@ -66,13 +62,14 @@ pip install -qU langchain-sambanova
Now we can instantiate our model object and generate chat completions:

```python
from langchain_sambanova import ChatSambaNovaCloud
from langchain_sambanova import ChatSambaNova

llm = ChatSambaNovaCloud(
llm = ChatSambaNova(
model="Meta-Llama-3.3-70B-Instruct",
max_tokens=1024,
temperature=0.7,
top_p=0.01,
# other params...
)
```

Expand Down Expand Up @@ -272,8 +269,8 @@ Joke(setup='Why did the cat join a band?', punchline='Because it wanted to be th
## Input Image

```python
multimodal_llm = ChatSambaNovaCloud(
model="Llama-3.2-11B-Vision-Instruct",
multimodal_llm = ChatSambaNova(
model="Llama-4-Maverick-17B-128E-Instruct",
max_tokens=1024,
temperature=0.7,
top_p=0.01,
Expand Down Expand Up @@ -309,4 +306,4 @@ The weather in this image is a serene and peaceful atmosphere, with a blue sky a

## API reference

For detailed documentation of all SambaNovaCloud features and configurations head to the API reference: [docs.sambanova.ai/cloud/docs/get-started/overview](https://docs.sambanova.ai/cloud/docs/get-started/overview)
For detailed documentation of all SambaNova features and configurations head to the API reference: [docs.sambanova.ai/cloud/docs/get-started/overview](https://docs.sambanova.ai/cloud/docs/get-started/overview)
270 changes: 0 additions & 270 deletions src/oss/python/integrations/chat/sambastudio.mdx

This file was deleted.

Loading