steampipe plugin install mr-destructive/cohereai

CohereAI + Steampipe

CohereAI is an Artificial Intelligence research and development company that provides APIs for general models.

Steampipe is an open source CLI to instantly query cloud APIs using SQL.

Get generations for a given text prompt in your CohereAI account:

select
generation
from
cohereai_generation
where
prompt = 'Write an novel title for a magical world.';
+---------------------------------------------+
| generation |
+---------------------------------------------+
| |
| The Magically Mysterious World of Enchantia |
| |
| The Magic World of Ooze |
| |
| The Magicians of Xylar |
+---------------------------------------------+

Documentation

Get started

Install

Download and install the latest CohereAI plugin:

steampipe plugin install Mr-Destructive/cohereai

Credentials

ItemDescription
CredentialsCohereAI requires an API Key for all requests.
PermissionsAPI Keys have the same permissions as the user who creates them, and if the user permissions change, the API key permissions also change.
RadiusEach connection represents a single CohereAI Installation.
Resolution1. Credentials explicitly set in a steampipe config file (~/.steampipe/config/cohereai.spc)
2. Credentials specified in environment variables, e.g., COHEREAI_API_KEY.

Configuration

Installing the latest comereai plugin will create a config file (~/.steampipe/config/cohereai.spc) with a single connection named cohereai:

connection "cohereai" {
plugin = "mr-destructive/cohereai"
# API key for requests. Required.
# Get your API key at https://dashboard.cohere.ai/api-keys
# This can also be set via the `COHEREAI_API_KEY` environment variable.
# api_key = "asLGEMKWMfkeFKENW038493fnWeng"
}

Credentials from Environment Variables

The CohereAI plugin will use the standard CohereAI environment variables to obtain credentials only if other arguments (api_key) are not specified in the connection:

export COHEREAI_API_KEY=asLGEMKWMfkeFKENW038493fnWeng

Get involved