Introduction

In this guide we'll walk through the process of linking Cerb to Together.ai. You'll be able to use Together.ai as a llm.agent option.

Get a Together.ai API Key.

Log in to your Together.ai Account or sign up if you don't already have one.

Click your user icon in the top right and click Settings.

Choose API Keys from the left menu and copy your user key from the top of the page.

Create the Together.ai service in Cerb

  1. Navigate to Search » Connected Services.

  2. Click the (+) icon in the top right of the list.

  3. Select Together.ai.

  4. Paste the key you copied earlier in the API Key field.

  5. Click the Create button.

Examples

Chat completions

https://docs.together.ai/docs/chat-overview

start:
  http.request/completions:
    output: http_response
    inputs:
      method: POST
      url: https://api.together.xyz/v1/chat/completions
      authentication: cerb:connected_account:togetherai
      headers:
        Content-Type: application/json
      body:
        model: meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
        messages:
          0:
            role: user
            content: What is Cerb?
    on_success:
      set:
        response@json: {{http_response.body}}
        http_response@json: null