Authentication
Set yourSAMBANOVA_API_KEY environment variable. Get your key from here.
Example
UseSambanova with your Agent:
Params
Sambanova also supports the params of OpenAI.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
Learn how to use Sambanova with Agno.
SAMBANOVA_API_KEY environment variable. Get your key from here.
export SAMBANOVA_API_KEY=***
setx SAMBANOVA_API_KEY ***
Sambanova with your Agent:
from agno.agent import Agent, RunResponse
from agno.models.sambanova import Sambanova
agent = Agent(model=Sambanova(), markdown=True)
# Print the response in the terminal
agent.print_response("Share a 2 sentence horror story.")
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "Meta-Llama-3.1-8B-Instruct" | The id of the Sambanova model to use |
name | str | "Sambanova" | The name of this chat model instance |
provider | str | "Sambanova" | The provider of the model |
api_key | Optional[str] | None | The API key for authenticating with Sambanova (defaults to environment variable SAMBANOVA_API_KEY) |
base_url | str | "https://api.sambanova.ai/v1" | The base URL for API requests |
Sambanova also supports the params of OpenAI.Was this page helpful?