new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

sambanova/setup

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

SambaNova provider npm package

The SambaNova provider is available via the `sambanova-ai-provider` npm module.

SambaNova API key environment variable

The SambaNova provider reads API keys from the `SAMBANOVA_API_KEY` environment variable.

SambaNova default import

You can import the default provider instance named `sambanova` from `sambanova-ai-provider`.

SambaNova custom provider instance

You can create a customized SambaNova provider instance by importing `createSambaNova` from `sambanova-ai-provider` and calling it with optional settings.

SambaNova text generation example

Example of basic text generation using SambaNova: ```ts import { createSambaNova } from 'sambanova-ai-provider'; import { generateText } from 'ai'; const sambanova = createSambaNova({ apiKey: 'YOUR_API_KEY', }); const model = sambanova('Meta-Llama-3.1-70B-Instruct'); const { text } = await generateText({ model, prompt: 'Hello, nice to meet you.', }); console.log(text); ```

SambaNova API endpoint URL

The SambaNova API chat completions endpoint is `https://api.sambanova.ai/v1/chat/completions`.

SambaNova authorization header format

SambaNova uses Bearer token authentication sent in the Authorization header with format `Authorization: Bearer YOUR_API_KEY`.

Give your agent this brain