steampipe-plugin-cohereai

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

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 = "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:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL