Skip to content

Mr-Destructive/steampipe-plugin-cohereai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

Cohere-AI Plugin for Steampipe

Use SQL to generate, classify, summarize text and more from CohereAI.

Quick start

Install the plugin with Steampipe:

steampipe plugin install mr-destructive/cohereai

Configure your API key in ~/.steampipe/config/cohereai.spc:

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"
}

Or through environment variables:

export COHEREAI_API_KEY=asLGEMKWMfkeFKENW038493fnWeng

Run steampipe:

steampipe query

Run a query:

select
  generation
from
  cohereai_generation
where
  prompt = '';

Developing

Prerequisites:

Clone:

git clone https://github.com/mr-destructive/steampipe-plugin-cohereai.git
cd steampipe-plugin-cohereai

Build, which automatically installs the new version to your ~/.steampipe/plugins directory:

make

Configure the plugin:

cp config/* ~/.steampipe/config
vi ~/.steampipe/config/cohereai.spc

Try it!

steampipe query
> .inspect cohereai

Further reading:

Contributing

Please see the contribution guidelines and our code of conduct. All contributions are subject to the Apache 2.0 open source license.

help wanted issues: