SambaNova
Introduction
In this guide we'll walk through the process of linking Cerb to SambaNova. You'll be able to use SambaNova's full API in Cerb automations.
Get a SambaNova API Key.
Log in to your SambaNova Account or sign up if you don't already have one.
Choose APIs in the menu and then click the "Generate New API Key" button.
Copy the API key for use later.
Create the SambaNova service in Cerb
-
Navigate to Search » Connected Services.
-
Click the (+) icon in the top right of the list.
-
Select SambaNova.
-
Paste the key you copied earlier in the API Key field.
-
Click the Create button.
Examples
Chat completions
start:
http.request/chat:
output: http_response
inputs:
method: POST
url: https://api.sambanova.ai/v1/chat/completions
authentication: cerb:connected_account:sambanova
headers:
Content-Type: application/json
body:
stream@bool: false
model: Meta-Llama-3.1-70B-Instruct
messages:
0:
role: system
content: You are a helpful assistant for Cerb, an app to automate helpdesk inboxes and workflows
1:
role: user
content: What is Cerb?
on_success:
set:
response_json@json: {{http_response.body}}
http_response@json: null