Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat (docs): Add SambaNova provider #5281

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Deipzza
Copy link

@Deipzza Deipzza commented Mar 19, 2025

As it was suggested at #5122, I want to add SambaNova as a custom third party provider.

We're currently missing the NPM package and official repository link as we're currently working to publish it, but if we can get reviewed to know that everything's working fine would be great.

I was wondering if this is the correct approach, and not the approach of an individual that wants to create an unofficial provider, because I noticed that there are two types of providers: "official" ones being handled at content/providers/01-ai-sdk-providers and community ones being handled at content/providers/03-community-providers.

And we want our company to have an official integration/provider with this repo, so that's why I'm asking this.

Thanks.

cc. @lgrammel

Comment on lines 16 to 29
```bash
# With npm
npm install sambanova-ai-provider
```

```bash
# With yarn
yarn add sambanova-ai-provider
```

```bash
# With pnpm
pnpm add sambanova-ai-provider
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use switcher (see other community providers eg ollama)


### Example

```js
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer ts


const model = sambanovaProvider('Meta-Llama-3.1-70B-Instruct');

await generateText({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assign to var


Basic demonstration of text generation using the SambaNova provider.

```js
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ts


| Chat completion | Image input |
| ------------------ | ------------------ |
| :white_check_mark: | :white_check_mark: |
Copy link
Collaborator

@lgrammel lgrammel Mar 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unclear if supported, please use <Check size={18} />

@@ -0,0 +1,178 @@
---
title: SambaNova
description: Learn how to use SambaNova provider for the AI SDK.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...to use the SambaNova provider...

@Deipzza
Copy link
Author

Deipzza commented Mar 20, 2025

@lgrammel fixed comments. Also I want to remark my question: as this is going to be the official SambaNova provider, is it correct to have it under community providers and not under the official ones? What's the difference? Can we aim to be official?
Thanks!

- The repo is internal for now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants