-
Notifications
You must be signed in to change notification settings - Fork 2k
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
base: main
Are you sure you want to change the base?
Conversation
```bash | ||
# With npm | ||
npm install sambanova-ai-provider | ||
``` | ||
|
||
```bash | ||
# With yarn | ||
yarn add sambanova-ai-provider | ||
``` | ||
|
||
```bash | ||
# With pnpm | ||
pnpm add sambanova-ai-provider | ||
``` |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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({ |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: | |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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...
@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? |
- The repo is internal for now
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 atcontent/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